Skip to content
Prev 274190 / 398506 Next

Odp: labels in a boxplot

figuring
anything, I
var1.
x-axis.
dummies:
c("Mediterranean","Anglo-Saxon","Scandinavian","Centre-East","South-East")
This gives me output with all labels
pdf("test.pdf", 8,8)
boxplot(var1[med==1], var1[anglo==1], var1[scand==1], var1[ceast==1],
+ var1[seast==1], names = vec)
dev.off()

If you want labels to rotate in let say 45 degrees you need to use srt 
parameter to text and allow text to be written to outer margin on defined 
places. Maybe some package can do it itself (try plotrix) or go through 
http://addictedtor.free.fr/graphiques/, maybe you find some solution.

Regards
Petr
orientation
partially
looking
be
allow
place
http://www.R-project.org/posting-guide.html