Hello there, I would like to plot a graph with the x axis's label displayed at a 45 angle to the x axis instead of horizontal to it as the label is very long. What should I do? Thank you for your help in advance Lisa Wang Princess Margaret Hospital Toronto, Ca
Marc Schwartz (via MN)
2006-Mar-08 22:36 UTC
[R] How to plot the xaxis label at 45 degree angle?
On Wed, 2006-03-08 at 16:53 -0500, Lisa Wang wrote:> Hello there, > > I would like to plot a graph with the x axis's label displayed at a 45 > angle to the x axis instead of horizontal to it as the label is very > long. What should I do? > > Thank you for your help in advanceSee R FAQ 7.27 How can I create rotated axis labels? http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f Using: > RSiteSearch("rotated axis labels") would be helpful as well. HTH, Marc Schwartz
Hello, Check under "par()" the option "srt" and "las". Although the way to rotate the labels is via manipulating the "axis()" of your plot separately. Regards, Carlos Ortega. On 3/8/06, Lisa Wang <lisawang@uhnres.utoronto.ca> wrote:> > Hello there, > > I would like to plot a graph with the x axis's label displayed at a 45 > angle to the x axis instead of horizontal to it as the label is very > long. What should I do? > > Thank you for your help in advance > > Lisa Wang > Princess Margaret Hospital > Toronto, Ca > > ______________________________________________ > R-help@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 >[[alternative HTML version deleted]]