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', axes=FALSE, type='o')
legend("topleft", cs,    pch = c(21, 22), lty=1, col=2:1)

only concern is there is a waring message in R: Warning message:
In plot.xy(xy.coords(x, y), type = type, ...) :
 "axes" is not a graphical parameter

You should not be specifying axis types or flags to a function, [ points() in this case] that is not intended to do anything with the axes. To be Biblical: If thine warning offend thee, pluck it[the argument] out.

--
David



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) the x- axis is
sigma, the y-axis is either delta1 or delta2. I connected both
scatterplots. To seperate them, one curves is a line with circles, the
other curve is a line with squares on it.

I want to make a notation either on the y-axis or on the graph. The
notiaion is "delta1--square; delta2--circle". So when people look at the graph, they can easily tell each curve's meaning. The curve with squares on it means the sigma vs. delta1, and the curve with circles on it means sigma vs. delta2. I think I can use 'expression' to write delta1, delta2 and sigma in greek letters, but I am not sure how to denote the square and
cirle I graphed.


--
View this message in context: 
http://old.nabble.com/symbol-in-the-plot-tp26422303p26443550.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to