[R] How to plot this simple step function?
Bornin1992
ian at mcparland.ca
Thu Jan 17 00:55:30 CET 2013
Hi everyone,
I am trying to graph a step function in R Studio. I just learned about R
today and decided to try it! The following is what I want it to look like.
I graphed it using
x <- 0:5
y <- c(0, .2, .3, .6, .9, 1.0)
plot(x, y, type = "s")
And used Microsoft Paint to get it to how I wanted it to look, but I want to
do it in R Studio completely.
<http://r.789695.n4.nabble.com/file/n4655792/plot.png>
How can I replicate this image? Also, when do I use the window above the
Console?
Any incredibly easy tutorials out there to get me started?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-plot-this-simple-step-function-tp4655792.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list