Skip to content

points marking

7 messages · khush ........, PIKAL Petr, Greg Snow

#
Your question is not really clear, do either of these examples do what you want?

 with(anscombe, plot(x1, y2, ylim=range(y2,y3)) )
 with(anscombe, points(x1, y3, col='blue', pch=2) )
 with(anscombe, segments(x1, y2, x1, y3, col=ifelse( y2>y3, 'green','red') ) )


 with(anscombe, plot(x1, y2, ylim=range(y2,y3), type='n') )
 with(anscombe[order(anscombe$x1),], polygon( c( x1,rev(x1) ), c(y2, rev(y3)), col='grey' ) )
#
Hi

I am not sure if you can do what you want. Segments are not points so your 
pch option is (I believe) ignored. You could play with lmitre and lend 
parameters, but it probably would not help much.

You cold try to look at
?symbols 
but you probably need to change source code to suit your needs.

Regards
Petr


r-help-bounces at r-project.org napsal dne 11.06.2010 08:00:04:
other
I
different
solid
segments
one
you
'green','red')
and
http://www.R-project.org/posting-guide.html
2 days later