[R] barplot names.arg

Marc Schwartz (via MN) mschwartz at mn.rr.com
Mon Mar 6 16:57:26 CET 2006


On Mon, 2006-03-06 at 15:40 +0100, Roland Kaiser wrote:
> How can i set a rotation for the names.arg in barplot?


See R FAQ 7.27 How can I create rotated axis labels?:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f


That provides the basic concept, which is easy to use with barplot()
along with knowing that barplot() returns the bar midpoints. See the
Value section of ?barplot.

HTH,

Marc Schwartz




More information about the R-help mailing list