allan_sta_staff_sci_main_uct@mail.uct.ac.za
2005-Nov-28 10:29 UTC
[R] mathematical expressions ...
hi all i have a few questions about formatting plots: 1. i would like to add a symbol such as chi squared with 3 degrees of freedom onto a plot. expression(chi^2 == jnfdjb), can be used in conjuction with "legend" to solve this but how does one include an under score for the degrees of freedom 2. on the y axis: how does one change the orientation of the label from vertical to horisontal 3. can one add dots (not lines) to a barplot (ie : inside each of the bars) sorry if the questions are too simple
allan_sta_staff_sci_main_uct at mail.uct.ac.za wrote:> > hi all > > i have a few questions about formatting plots: > > 1. i would like to add a symbol such as chi squared with 3 degrees of freedom > onto a plot. expression(chi^2 == jnfdjb), can be used in conjuction with > "legend" to solve this but how does one include an under score for the degrees > of freedomSee ?plotmath and use the index brackets.> 2. on the y axis: how does one change the orientation of the label from vertical > to horisontalSee ?par, in particular its argument "las".> 3. can one add dots (not lines) to a barplot (ie : inside each of the bars)Yes, use points() to add dots, and the invisibly returned value of barplot() contains information on the postition of the bars. Uwe Ligges> > sorry if the questions are too simple > > ______________________________________________ > 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