[R] Plot multiple similar equations in r

Jinggaofu Shi js3786 at drexel.edu
Wed Mar 2 18:03:15 CET 2016


Hi, there I am new on R. I want to plot a graph like this.

The curves are created by these equations :
(log(0.4)-(0.37273*log(x)-1.79389))/0.17941,
(log(0.5)-(0.37273*log(x)-1.79389))/0.17941,
(log(0.6)-(0.37273*log(x)-1.79389))/0.17941, etc. The equations are
similar, the only difference is the first log(XXX). I already manually draw
the graph by repeating plot() for each equation. But I think there must be
a way to just assign a simple variable like x<-c(0.4,0.5,0.6,0.7), and then
plot all the curves automatically. I tried to use data frame to make a set
of equations, but failed. Could somebody help me? Thank you very much!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QQ??20160302113702.png
Type: image/png
Size: 85043 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20160302/6223ee5d/attachment.png>


More information about the R-help mailing list