Hi All

I need some help with plotting a step function, currently I'm using

sfun <- stepfun(c(1, 2, 5,10, 20), c(0, 11, 22, 33, 44, 0), f=0)
plot(sfun, pch=NA, main="", xlim=c(1,20))

which I working fine, but my data is in the following format:

Min Max Value
1 2 11
2 5 22
510 33
10 20 44

1. To save time, is there a way to directly plot the above data as it is
(without any reformatting).
2. Also, I need with starting the x-axis value from 1, xlim is not
completely helping me with this.

Any help would be highly appreciated. Thank you,
Kim

        [[alternative HTML version deleted]]

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

Reply via email to