[R] plot-parameter pch without influence when plotting a data-frame

John Kane jrkrideau at yahoo.ca
Thu Oct 9 15:19:16 CEST 2008


--- On Thu, 10/9/08, Oliver Bandel <oliver at first.in-berlin.de> wrote:

> From: Oliver Bandel <oliver at first.in-berlin.de>
> Subject: Re: [R] plot-parameter pch without influence when plotting a data-frame
> To: "Gerhard Schön, UKE Hamburg" <G.Schoen at uke.de>
> Cc: "R-help" <r-help at r-project.org>
> Received: Thursday, October 9, 2008, 9:00 AM
> Zitat von "Gerhard Schön, UKE Hamburg"
> <G.Schoen at uke.de>:
> 
> > what is the result of:
> >
> > df <- data.frame(x = 1:5, y = 1:5)
> > plot(df, pch = 1:5)
> 
> It prints different symbols.
> 
> It seemed, that my pch-settings had an effect,
> but some symbols were very similar, especially, when
> a lot of them are plotted at similar places.
> 
> 
> But I also had the effect, that some symbol numbers
> didn't
> print enything, but *after* the loop I used, warnings were
> printed.

Have a look at ?points for some discussion of pch values.  Some values are undefined. 

Try something like
mm <- matrix(1:128, nrow= 4)
matplot(mm, pch=1:128)

to get some idea of what symbols are available.  

> 
> Do you know how to plot very small dots?
>  pch=20 makes dots that are too big for my plot.

matplot(mm, pch=20, cex=.5)


> Is there a possibility to have more detailed control on the
> symbols?



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.



More information about the R-help mailing list