문제 설명
barplot()에서 정보를 저장하고 그래프를 표시하지 않는 방법 (How to save information from barplot() and not displaying the graph)
나중에 작은 질문이 있습니다. 막대 도표의 x 눈금 위치를 나중에 도표에 대한 변수에 할당하고 싶지만 막대 도표가 그래픽 장치에 표시되어서는 안 된다고 가정해 보겠습니다. 플로팅 없이 어떻게 할당할 수 있습니까?
mat = matrix(ncol=5,nrow=3,rnorm(n = 15))
mids = barplot(mat)
시간과 도움에 감사드립니다!
건배, tokami
참조 솔루션
방법 1:
For barplot
, you can provide the plot = FALSE
parameter:
mids = barplot(mat, plot = FALSE)
(by tokami、Konrad Rudolph)