[R] duplicate data points on a line graph
Chuck Cleland
ccleland at optonline.net
Wed Jul 15 20:32:40 CEST 2009
On 7/15/2009 2:19 PM, NDC/jshipman wrote:
> Hi,
> I am new to R plot. I am trying to increase the data point
> observation when duplicate data points exist
>
> x y
> 1 10
> 1 10
> 2 3
> 4 5
> 9 8
>
>
> in the about example 1, 10 would be displayed larger than the other
> data points. Could someone give me some assistance with this problem
A couple of simple approaches:
x <- c(1,1,2,4,9)
y <- c(10,10,3,5,8)
plot(jitter(x), jitter(y))
plot(x, y, cex=c(2,2,1,1,1))
> 757-864-7114
> LARC/J.L.Shipman/jshipman
> Jeffery.L.Shipman at nasa.gov
>
> ______________________________________________
> R-help at 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.
--
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894
More information about the R-help
mailing list