nthropology
> Texas A&M University
> College Station, TX 77840-4352
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Dalthorp,
> Daniel
> Sent: Wednesday, March 2, 2016 1:05 PM
> To: Jinggaofu Shi
> Cc: r-help@R-project.org
1:05 PM
To: Jinggaofu Shi
Cc: r-help@R-project.org (r-help@r-project.org)
Subject: Re: [R] Plot multiple similar equations in r
Or, if you want easy labels, you can play around with contour graphs.
?contour # will give you info on how to make contour plots
The basic idea is to construct a matrix
Or, if you want easy labels, you can play around with contour graphs.
?contour # will give you info on how to make contour plots
The basic idea is to construct a matrix of z-values...one z for every
combination of x and y
contour(x,y,z)
The x's would then be the x-values you want in
(0.37273*log
A simple solution that will give you an idea of some of the plot parameters:
x<-seq(1,10,length=1000) # values for x-axis
x0<-c(0.4,0.5,0.6,0.7)
miny<-(log(min(x0))-(0.37273*log(max(x))-1.79389))/0.17941 # minimum
y-value to show on graph
maxy<-(log(max(x0))-(0.37273*log(min(x))-1.79389))/0.17941
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 f
5 matches
Mail list logo