[R] mathematical expressions ...

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Nov 28 11:58:12 CET 2005


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 freedom


See ?plotmath and use the index brackets.


> 2. on the y axis: how does one change the orientation of the label from vertical
> to horisontal

See ?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




More information about the R-help mailing list