[R] How to plot this simple step function?

Bornin1992 ian at mcparland.ca
Thu Jan 17 08:32:50 CET 2013


Thank you for your reply!

When I copy and paste the code into the Console, I receive several errors!




1) Error in plot(x, y, type = "n") : object 'x' not found
> segments(x[-length(x)],y[-length(x)],x[-1],y[-length(x)])
Error in segments(x[-length(x)], y[-length(x)], x[-1], y[-length(x)]) : 
  object 'x' not found
2)Error in points(x[-length(x)], y[-length(x)], pch = 16) : 
  object 'x' not found
points(x[-1],y[-length(x)],pch=1) 
3) Error in points(x[-1], y[-length(x)], pch = 1) : object 'x' not found.

What am I doing wrong? :'(




--
View this message in context: http://r.789695.n4.nabble.com/How-to-plot-this-simple-step-function-tp4655792p4655813.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list