for a simple scatterplot: plot(X ~ Y, type = 'p', col = 'red') this produces red-edged circles, but I want to fill in the circles. can this be done? I checked '? plot' already but couldn't find what I was looking for. cheers -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044690.html Sent from the R help mailing list archive at Nabble.com.
Hey, the parameter in the plot command you are looking for is "pch". For filled circles type: > plot(X ~ Y, type = 'p', col = 'red', pch=16) The 16 determines the filled circles. Cheers, Mango ----------------------------------------- B.-Markus Schuller aka Mango Sensory Ecology Group Max-Planck-Institute for Ornithology 82319 Seewiesen, Germany phone: +49 (0)8157 932 -378 fax: +49 (0)8157 932 -344 email: schuller at orn.mpg.de http://www.orn.mpg.de/nwg/abtsiemers.html ----------------------------------------- Never run for the bus. Never skip tea. On 16.11.2010 13:28, DrCJones wrote:> > for a simple scatterplot: > > plot(X ~ Y, type = 'p', col = 'red') > > this produces red-edged circles, but I want to fill in the circles. > > can this be done? I checked '? plot' already but couldn't find what I was > looking for. > > cheers > > > > >
DrCJones <matthias.goddard <at> gmail.com> writes:> for a simple scatterplot: > > plot(X ~ Y, type = 'p', col = 'red') > > this produces red-edged circles, but I want to fill in the circles.plot(X ~ Y, type = 'p', col = 'red', pch=16) Are you sure you want X~Y and not Y~X?
Fantastic thanks! -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044772.html Sent from the R help mailing list archive at Nabble.com.
"Are you sure you want X~Y and not Y~X? " You are right of course - sorry that was just a typo ;) -- View this message in context: http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044776.html Sent from the R help mailing list archive at Nabble.com.
Try adding pch = 16 to your plot call. HTH, Dennis On Tue, Nov 16, 2010 at 4:28 AM, DrCJones <matthias.goddard@gmail.com>wrote:> > for a simple scatterplot: > > plot(X ~ Y, type = 'p', col = 'red') > > this produces red-edged circles, but I want to fill in the circles. > > can this be done? I checked '? plot' already but couldn't find what I was > looking for. > > cheers > > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/scatterplot-with-filled-circles-tp3044690p3044690.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >[[alternative HTML version deleted]]