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.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of elaine kuo
> Sent: Monday, October 11, 2010 9:45 PM
> To: r-help@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@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.

______________________________________________
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