barplot()에서 정보를 저장하고 그래프를 표시하지 않는 방법 (How to save information from barplot() and not displaying the graph)


문제 설명

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 tokamiKonrad Rudolph)

참조 문서

  1. How to save information from barplot() and not displaying the graph (CC BY‑SA 2.5/3.0/4.0)

#graphics #plot #R #bar-chart






관련 질문

Triangulate a quad with a hole in it using tessellation (Triangulate a quad with a hole in it using tessellation)

기존 이미지가 화면에 그려지지 않는 이유는 무엇입니까? (Why won't my existing image draw to the screen?)

barplot()에서 정보를 저장하고 그래프를 표시하지 않는 방법 (How to save information from barplot() and not displaying the graph)

Java 시간에 따라 사각형을 이동하는 방법 (java how to make a rectangle move by time)

큐브맵을 2D 텍스처로 투영 (Project cubemap to 2D texture)

OpenGL & Qt : 마우스 오버 시 레이블 표시 (OpenGL & Qt : display a label on the mouseover)

프리파스칼에서 기능적 그래픽을 얻으려면 어떻게 해야 합니까? (How do I get functional graphics from freepascal?)

스크래치 및 승리 (Scratch and win)

벡터 병합 알고리즘 도움말 (Help with algorithm for merging vectors)

WPF - ScreenSaver 그래픽 성능 향상 (WPF - ScreenSaver graphics performance improvements)

Java, 패널용 그래픽 개체 생성 및 편집? (Java, create and edit a Graphics Object for Panel?)

정점 셰이더의 out 변수는 어떻게 보간됩니까? (How are the out variables of vertex shader interpolated?)







코멘트