Displaying 1 result from an estimated 1 matches for "myframe_a".
Did you mean:
myframe_b
2007 Dec 30
1
plot multiple data sets on same axis
...e)
coplot(y ~ x | dataset)
but not on the same axis with a legend. I'd like to start by getting
that in a scatterplot form:
# XXX: datasets hardcoded in here...
# is split() supposed to do something similar to this?
# or how do I get a list of datasets to feed into subset?
myframe_a <- subset(myframe, dataset=='a')
myframe_b <- subset(myframe, dataset=='b')
...
and then I can apparently plot one and add points from others to it:
# XXX: more hardcoding...
attach(myframe_a)
plot(x, y, col='red')
detach(myframe_a)
attach...