Hello Everyboby: Could I consult everyboby two problems about plot. Recently, I am doing some analysis in plot. Now I can draw boxplot in R , but the result's plot loss some of the x-coordinates. I want to rotate the direction of x-coordinates' letter so that it can show all. But I don't know how to write this option or function . Or Could you carry out some other good measures to help me? The second problem, x-axis in the plot I drawed is time , but the figure in it is very oddness. For example, the time is 2004-9-29, the figure in the plot is 1095000000.Could anyone help me to settle these problems. Thank you very much! Best Regards! Ivy Li£¨Àîè¡£© YMS in Production & Testing Semiconductor Manufactory International (ShangHai) Corporation [[alternative HTML version deleted]]
At 16:17 2004-10-15 +0800, you wrote:>[...] I want to rotate the direction of x-coordinates' letter so that it >can show all. But I don't know how to write this option or function .I'm not sure if I've understood your question correctly. But if you use base graphics and want e.g. rotated labels, you'll achive this rather easily using functions in the gridBase package. (Take a look at the package vignette for an example that'll get you started.) Henric
Use text(), for which srt will work. As an example: plot(rnorm(20), rnorm(20), xaxt="n") text(-2:2, rep(par("usr")[3], 5), c("negative two", "negative one", "zero", "one", "two"), srt=45, xpd=NA, adj=1) HTH, Andy> From: Henric Nilsson > > At 10:51 2004-10-15 +0100, you wrote: > > >If you are using base grafics, you use the argument srt (see > help(par)), > > How do you get a, say, 45 degree rotation of the axis labels > using `srt'? > The help page for par's `las' argument says > > "Note that other string/character rotation (via argument srt > to par) does > not affect the axis labels" > > Henric > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >