[R] Plotting a simple subset

Michael Hopkins michael.hopkins at hopkins-research.com
Fri Jul 8 17:50:05 CEST 2005



Hi all

Just converting from Stata to R and struggling a little to come to terms
with the new philosophy/command line.

E.g. I want to plot x against y if x < 5

In Stata: graph x y, if( x < 5 )

How do I do this in R?  Have tried most of the obvious options without
success.

Can I have multiple subsets? I.e. In Stata: if( x < 5 && y > 3 )

TIA 

Michael


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        _/    _/   _/_/_/             Hopkins Research Ltd
       _/    _/   _/    _/
      _/_/_/_/   _/_/_/          http://www.hopkins-research.com/
     _/    _/   _/   _/
    _/    _/   _/     _/               'touch the future'
                   
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




More information about the R-help mailing list