[R] Extracting data subset for plot

Greg Snow Greg.Snow at imail.org
Tue Oct 12 17:45:49 CEST 2010


If you just want to limit the plot, then specify xlim and ylim in the plot call and everything outside of those ranges will be silently ignored in the plotting.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of elaine kuo
> Sent: Monday, October 11, 2010 9:45 PM
> To: r-help at r-project.org
> Subject: [R] Extracting data subset for plot
> 
> Dear list,
> 
> 
> 
> I want to make a plot based on the following information, using the
> command
> plot.
> 
> variable A for x axis : temperature (range: -20 degrees to 40 degree)
> 
> variable B for y axis : altitude (range: 50 m to 2500 m )
> 
> 
> 
> The data below 0 degree of X variable wants to be erased tentatively.
> 
> Please kindly advise the command to extract the data ranging from 0
> degree
> to 40 degrees.
> 
> Thank you.
> 
> 
> 
> Elaine
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.



More information about the R-help mailing list