Re: [R] Paste symbol and calculation in plot

2009-08-11 Thread Jonathan R. Blaufuss
Scott, Thanks! That works great. I appreciate the help. Jonathan - Original Message - From: "Scott Sherrill-Mix" To: "Jonathan R. Blaufuss" Cc: r-help@r-project.org Sent: Tuesday, August 11, 2009 4:18:18 PM GMT -06:00 US/Canada Central Subject: Re: [R] Paste symbo

Re: [R] Paste symbol and calculation in plot

2009-08-11 Thread Scott Sherrill-Mix
I'm no expert at this but it seems like ?plotmath is saying to do something like: text(2,0.35,bquote(sigma==.(mySigma),list('mySigma'=round(sd(Data),digits=3 Scott Scott Sherrill-Mix Department of Microbiology University of Pennsylvania 402B Johnson Pavilion 3610 Hamilton Walk Philadelphi

[R] Paste symbol and calculation in plot

2009-08-11 Thread Jonathan R. Blaufuss
I'm trying to annotate a density plot and I would like to have R calculate the standard deviation and place it in the plot next to the standard deviation symbol "sigma". I can successfully use the text command to paste "StDev =",round(sd(Data),digits=3)) on the plot. However, I have trouble whe