Displaying 2 results from an estimated 2 matches for "barplot_reference".
2009 Dec 15
2
Diagonal Labels on "Beside" Bars in Barplot
...onek2.free.fr/UNIX/48_R/all.html
data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
# Provided Example
barplot(a, beside = TRUE,
legend.text = attr(a, "dimnames")$Hair)
# I would like to make the labels on the x-axis diagonal, so I tried the following:
barplot_reference<-barplot(a, beside = TRUE,
legend.text = attr(a, "dimnames")$Hair,
xaxt = "n", xlab = "")
text(barplot_reference, par("usr")[3] - 0.09, srt = 45, adj = 1,
labels = as.character(colnames(a)), xpd =...
2009 Dec 01
1
Aligning Diagonally Oriented Labels Under Bar Chart
I searched the forms (i.e., R Search)?and come up with the following suggested link:
?http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f
I tried to implement what I believe was being implied by that URL and came up with the below:
barplot(WorldPhones[1,],
??????? ylim=c(0, 50000),
??????? axes=FALSE, ann=FALSE,
???????