Displaying 2 results from an estimated 2 matches for "pchcode".
2001 Aug 28
2
using by to plot
Hello,
I would like to use by to create a series of plots, but I'm not sure how
to design the function.
Here's what I've got:
1. A data frame of observations of measured value 2 measured vlaues and a
pch code.
V1 V2 pchCode
.0045 123 1
.0034 145 2
.0045 123 1
.0046 167 3
...
So what I want to do is create a single scatterplot of the multiple
conditions (specified by pchCode) and use pchCode to specify the plotting
character within the plotting function.
I'm imagining something like
by(df, pchCode, function(...
2005 Aug 08
3
use different symbols for frequency in a plot
suppose I have the following data
x<-c(rep(.1,5),rep(.2,6),rep(.4,10),rep(.5,20))
y<-c(rep(.5,3),rep(.6,8),rep(1.2,8),rep(2.5,18),rep(3,4))
If I plot(x,y) in R, I will only get seven distinct
points. What I want to do is to use different symbols
to show the frequency at each point.
e.g. if the frequncey is between 1 and 5, then I plot
the point as a circle; if the frequency is between 6