plotting a function

classic Classic list List threaded Threaded
3 messages Options
Jin
Reply | Threaded
Open this post in threaded view
|

plotting a function

Jin
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: plotting a function

Erik Iverson-3
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Jin wrote:

> Hello Dear,
>
> I am trying to plot a function to see a minimum point (actually, using
> "optim"). For example,
>
> 1. y=f(x)
> 2. x has a range
> 3. plot(x,y) to see a point x minimizing y
>
> I tried "plot(x,y)", but it made an error. Am I doing a right way?
>
> Thanks,
>
> Jin

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: plotting a function

Francisco J. Zagmutt
In reply to this post by Jin
Take a look at the examples in ?curve.  As suggested by Erik, in the
future please read the posting guide so you can get a more accurate
response.

Regards,

Francisco

Dr. Francisco J. Zagmutt
Vose Consulting
1643 Spruce St., Boulder
Boulder, CO, 80302
USA
www.voseconsulting.com

Jin wrote:

> Hello Dear,
>
> I am trying to plot a function to see a minimum point (actually, using
> "optim"). For example,
>
> 1. y=f(x)
> 2. x has a range
> 3. plot(x,y) to see a point x minimizing y
>
> I tried "plot(x,y)", but it made an error. Am I doing a right way?
>
> Thanks,
>
> Jin

______________________________________________
[hidden email] 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.