Hi all,
I'm having trouble locating a script that will allow to me to create graphs
that show compound functions as a function of the simple function, rather
than just x (or time as it is in my case).

Currently I have the following functions defined in my script:

>
>
> T1<-function(t) {27.5-12.5*cos(2*pi*t/365)**}
> and
>
> B1<-function(T1,t) {dnorm(T1(t),mean=22.5,sd=**3.3)}
>



plot(function(t) {B1(T1,t)}, 0, 365) plots B1 as a function of time, whereas
I am looking for a code that allows me to plot B1 as a function of T1. I
tried plot(function(T1(t) {B1(T1,t)}, 0, 365) and also plot(function(T1,t)
{B1(T1,t)}, 0, 365), neither of which worked. My coding skills are very
limited, and I'm somewhat out of ideas..


Thank you for any assistance you are able to give,
yours sincerely,
Aimee

ps: If it's relevant I'm using R64 (R 2.11.1) on a Mac

        [[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