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. ______________________________________________ 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.