Michelle Lee
Michelle Lee

Reputation: 11

Modifying labels for a tukeys HSD plot in R

Hi there so I'm a beginner at all this and need help modifying my Tukeys y-axis labels as they are all ontop of each other...is there a way?

Please see my code:

both<-aov(cowpea.and.wheat$Protein.conc..ug.Protein.g.1.Fwt.~cowpea.and.wheat$Treatment*Species, data=cowpea.and.wheat)
summary(both)
TukeyHSD(both)
par(mar=c(3,10,2,1))
plot(TukeyHSD(both),las=1)

image of plot:

enter image description here

Thank you so much for your help

Upvotes: 1

Views: 2091

Answers (1)

Marcial HS
Marcial HS

Reputation: 21

try:

with(par(mai=c(1,2.5,1,1)),{plot(TukeyHSD(both), las=1,cex.axis=0.4)})

##par(mai=c(1,2.5,1,1)) adjusts the margin

##cex.axis=0.4 adjusts the axis font size relative to graph 

If you could respond with a graphic (although the question was asked back months) with the above parameters, to see if my proposal is effective. Greetings and luck!

Upvotes: 2

Related Questions