Dear experts, Is there a way to change the angle in which the axes are labeled? I would like to draw a barplot where items are countries and, in order to fit the country?s names in, tilt these names about 45?. Is this possible? I cannot find any examples in the docs. Thanks for your help!!! Christoph
I´m sorry, I did not provide any code.
Here is now a small example:
# create data frame
LA <- data.frame(countries=c("Chile", "Peru",
"Bolivia"), values=c
(10, 12, 13))
# call barplot
barplot(LA$values, names.arg=LA$countries)
# Countries names are not plotted, but their index numbers instead.
# So again the question:
# How can I tilt the angles in order to make whole names fit?
Thanks
Christoph
[[alternative HTML version deleted]]
Hi,> I would like to draw a barplot where items are countries and, in > order to fit the country?s names in, tilt these names about 45?. Is > this possible? I cannot find any examples in the docs.I think it is in the FAQ : http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f Hope that helps, -- Julien