Re: [R] symbol in the plot

2009-11-20 Thread David Winsemius
On Nov 20, 2009, at 10:52 AM, gcheer3 wrote: Thank you again, Joh Based on your code seems I solved the problem. new code as follows: cs<-expression(delta[1], delta[2]) plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta', pch=22, type='o') points(sigma, delta2, col='red', a

Re: [R] symbol in the plot

2009-11-20 Thread gcheer3
Thank you, David. thanks for letting me know how to use expression in legend. It works too. gcheer3 wrote: > > a graph question. Thanks a lot in advance. > > I made two scatterplots on one graph (sigma vs. delta1, sigma vs. delta2) > (20 observations of delta1, delta2 and corresponding sigma)

Re: [R] symbol in the plot

2009-11-20 Thread gcheer3
Thank you again, Joh Based on your code seems I solved the problem. new code as follows: cs<-expression(delta[1], delta[2]) plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta', pch=22, type='o') points(sigma, delta2, col='red', axes=FALSE, type='o') legend("topleft", cs,pch

Re: [R] symbol in the plot

2009-11-20 Thread Johannes Graumann
plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta',pch=22, type='o') points(sigma, delta2, col='red', axes=FALSE, pch=1,type='o') legend("topleft",c(expression(Delta*1),expression(delta*2)),fill=TRUE,col=c("black","red"),pch=c(1,22)) See: >?plotmath Still, gimme a easily runnabl

Re: [R] symbol in the plot

2009-11-20 Thread David Winsemius
On Nov 20, 2009, at 10:23 AM, gcheer3 wrote: Thanks for your reply. It is very helpful. I am sorry I didn't make my queston clearer. I have two concerns about this graph. One thing is denote 'sigma' and 'delta' as greek letters, usually I use 'expression'. But I don't know how to use 'e

Re: [R] symbol in the plot

2009-11-20 Thread gcheer3
Joh, thank you very much. sorry for confusing you. I didn't make my question clear. I tried your code it looks much better than my original one. Just I prefer I can write the greek letter delta1 and delta 2 instead of words 'delta1' and 'delta2'. Also, it will be nice if there is a square symbol

Re: [R] symbol in the plot

2009-11-20 Thread gcheer3
Thanks for your reply. It is very helpful. I am sorry I didn't make my queston clearer. I have two concerns about this graph. One thing is denote 'sigma' and 'delta' as greek letters, usually I use 'expression'. But I don't know how to use 'expression' in the 'legend' The other thing is, the gra

Re: [R] symbol in the plot

2009-11-20 Thread Johannes Graumann
How about plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta', pch=22, type='o') points(sigma, delta2, col='red', axes=FALSE, type='o') legend("topleft",c("Delta1","Delta2"),fill=TRUE,col=c("black","red")) Send runnable example next time. HTH, Joh gcheer3 wrote: > > TO be spe

Re: [R] symbol in the plot

2009-11-19 Thread gcheer3
TO be specific, here is how I graphed plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta1--square delta2--circle', pch=22, type='o') par(new=TRUE) plot(sigma, delta2, ylim=range(-0.5, 2), xlab='sigma', ylab='delta1--square delta2--circle', col='red', axes=FALSE, type='o') Thank

[R] symbol in the plot

2009-11-19 Thread gcheer3
a graph question. Thanks a lot in advance. I made two scatterplots on one graph (sigma vs. delta1, sigma vs. delta2) (20 observations of delta1, delta2 and corresponding sigma) the x-axis is sigma, the y-axis is either delta1 or delta2. I connected both scatterplots. To seperate them, one curves