http://www.nabble.com/file/p14664173/at-modality.png I created the above image with R and I have one problem left: Some of the labels of the axes do not show up, probably because there's not enough space. I use the following code to create the plot: modality <- read.table("results.table", header=TRUE, sep=",") color <- c("red3","green3","blue3","orange2","purple2","brown4") plot(modality, col=color)>From the manual I though one of the following might help: > plot(length, col=color, las=1) > plot(length, col=color, las=2) > plot(length, col=color, las=0)This is supposed to change the orientation of the axis lables, I guess. But it doesn't change the output a bit. Does anyone know what to do? (I am happy with almost any solution that makes the missing labels appear: smaller fonts, rotating the labels etc.) Cheers, Michael -- View this message in context: http://www.nabble.com/Orientation-of-labels-on-axes-tp14664173p14664173.html Sent from the R help mailing list archive at Nabble.com.
Hi Michael, a solution would be not to draw axes directly, but afterwards with the axis-command: plot(length, col=color, axes=F) axis(2,at=<your_positions>, labels=<your_labels>, cex.axis=0.6, las=1); # left axis axis(1,at=<your_positions>, labels=<your_labels>, cex.axis=0.6, las=1); # bottom axis cex.axis...relativefont size las...text orientation see ?axis for further settings cheers, Albert Am Montag, den 07.01.2008, 03:52 -0800 schrieb mika03:> http://www.nabble.com/file/p14664173/at-modality.png > > > I created the above image with R and I have one problem left: > > Some of the labels of the axes do not show up, probably because there's not > enough space. > > > I use the following code to create the plot: > modality <- read.table("results.table", header=TRUE, sep=",") > color <- c("red3","green3","blue3","orange2","purple2","brown4") > plot(modality, col=color) > > >From the manual I though one of the following might help: > > plot(length, col=color, las=1) > > plot(length, col=color, las=2) > > plot(length, col=color, las=0) > > This is supposed to change the orientation of the axis lables, I guess. But > it doesn't change the output a bit. > > Does anyone know what to do? > (I am happy with almost any solution that makes the missing labels appear: > smaller fonts, rotating the labels etc.) > > Cheers, > Michael > >
> http://www.nabble.com/file/p14664173/at-modality.png > > > I created the above image with R and I have one problem left: > > Some of the labels of the axes do not show up, probably because there'snot> enough space.Try par(las=1) then draw the plot plot(length, col=colour) Regards, Richie. Mathematical Sciences Unit HSL ------------------------------------------------------------------------ ATTENTION: This message contains privileged and confidential inform...{{dropped:20}}
Have a look at ?staxlab library(plotrix)or http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f --- mika03 <someone29_7 at yahoo.de> wrote:> > http://www.nabble.com/file/p14664173/at-modality.png > > > > I created the above image with R and I have one > problem left: > > Some of the labels of the axes do not show up, > probably because there's not > enough space. > > > I use the following code to create the plot: > modality <- read.table("results.table", header=TRUE, > sep=",") > color <- >c("red3","green3","blue3","orange2","purple2","brown4")> plot(modality, col=color) > > >From the manual I though one of the following might > help: > > plot(length, col=color, las=1) > > plot(length, col=color, las=2) > > plot(length, col=color, las=0) > > This is supposed to change the orientation of the > axis lables, I guess. But > it doesn't change the output a bit. > > Does anyone know what to do? > (I am happy with almost any solution that makes the > missing labels appear: > smaller fonts, rotating the labels etc.) > > Cheers, > Michael > > > -- > View this message in context: >http://www.nabble.com/Orientation-of-labels-on-axes-tp14664173p14664173.html> Sent from the R help mailing list archive at > Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >
mika03 wrote:> http://www.nabble.com/file/p14664173/at-modality.png > > > I created the above image with R and I have one problem left: > > Some of the labels of the axes do not show up, probably because there's not > enough space. > > > I use the following code to create the plot: > modality <- read.table("results.table", header=TRUE, sep=",") > color <- c("red3","green3","blue3","orange2","purple2","brown4") > plot(modality, col=color) > >>From the manual I though one of the following might help: > >>plot(length, col=color, las=1) >>plot(length, col=color, las=2) >>plot(length, col=color, las=0) > > > This is supposed to change the orientation of the axis lables, I guess. But > it doesn't change the output a bit. > > Does anyone know what to do? > (I am happy with almost any solution that makes the missing labels appear: > smaller fonts, rotating the labels etc.) >Hi Michael, If you're having trouble with labels fitting on an axis, look at the staxlab function in the plotrix package. Jim