Hi Sir I did not find any function of graph which plot one variable on x-axis and 2 or more than 2 variables on y-axis. Moreover, how can I change the labels of L-moments diagram obtained by plotlmrdia(lmrdia()) Thank you -- AMINA SHAHZADI Department of Statistics GC University Lahore, Pakistan. Email: amnakhan493@gmail.com amna_989@hotmail.com amna_989@yahoo.com [[alternative HTML version deleted]]
amna khan wrote:> > I did not find any function of graph which plot one variable on x-axis and > 2 > or more than 2 variables on y-axis. >You can use xyplot() from the package lattice. library(lattice) xyplot(y1+y2+y3~x) I suspect, the problem is, that plot() erases everything that was plotted earlier and establishes a new coordinate system in the plotting window. In case of basic graphics, you can set par(new=TRUE) and call plot() several times. points(), lines() and other functions from the basic graphics will add new curves to the existing plot. Initially, you must set axis ranges large enough to fit everything you want to plot. -- View this message in context: http://www.nabble.com/plots-tf4141246.html#a11780013 Sent from the R help mailing list archive at Nabble.com.
Hi r-help-bounces at stat.math.ethz.ch napsal dne 25.07.2007 12:17:54:> Hi Sir > > I did not find any function of graph which plot one variable on x-axisand 2> or more than 2 variables on y-axis.?matplot or you can do plot(x,y, ylim=range(all.your.y), type="n") and add lines/points by lines(x, one.of.your.y) points(x, other.of.your.y) Regards Petr> Moreover, how can I change the labels of L-moments diagram obtained by > plotlmrdia(lmrdia()) > > Thank you > > -- > AMINA SHAHZADI > Department of Statistics > GC University Lahore, Pakistan. > Email: > amnakhan493 at gmail.com > amna_989 at hotmail.com > amna_989 at yahoo.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
--- amna khan <amnakhan493 at gmail.com> wrote:> Hi Sir > > I did not find any function of graph which plot one > variable on x-axis and 2 > or more than 2 variables on y-axis.I think ?points or ?lines may be what you want.> Moreover, how can I change the labels of L-moments > diagram obtained by > plotlmrdia(lmrdia())Cannot help here.> > Thank you > > -- > AMINA SHAHZADI > Department of Statistics > GC University Lahore, Pakistan. > Email: > amnakhan493 at gmail.com > amna_989 at hotmail.com > amna_989 at yahoo.com