[R] Plotting a stepwise increasing function
Dimitris Rizopoulos
dimitris.rizopoulos at med.kuleuven.be
Thu Aug 31 15:17:26 CEST 2006
probably you're looking for:
plot(rnorm(10), type = "s")
# or
plot(rnorm(10), type = "S")
I hope it helps.
Best,
Dimitris
----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
----- Original Message -----
From: "Öhagen Patrik" <Patrik.Ohagen at mpa.se>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, August 31, 2006 3:06 PM
Subject: [R] Plotting a stepwise increasing function
>
> Dear All, Sorry for spamming you with something trivial. I would
> like to plot a "stepwise increasing function" (if that makes sense?
> See crude ASCHII art below). I think there is some clever paramter
> for solving the problem but I just cannot find it.
>
>
> _______________|
> |
> |
> ________|
> |
> |
> |
>
>
> Thank you in advance!
>
>
> Cheers, Patrik
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the R-help
mailing list