[R] Having a plot with points and line with different colors

Jim Lemon jim at bitwrit.com.au
Wed Mar 5 11:07:39 CET 2014


On 03/05/2014 09:09 PM, Baro wrote:
> thanks Jim,
>
> could you please show me some example?
>

# plot lines, then points
plot(1:5,type="l",col="blue")
points(1:5,col="black")
# plot both, then overplot points
plot(1:5,type="o",col="blue")
points(1:5,col="black")

Jim




More information about the R-help mailing list