[R] Simple Problem: Plotting mathematical functions
Aye
muudle at hotmail.de
Thu Apr 12 21:49:41 CEST 2012
Okay, i got this far:
f <- function(x) 0.25*x^2 + 6.47*x -32.6
g <- function(x) 0.99*x^2 -6*x -195
h <- function(x) 0.77*x^2 +14*x -495
j <- function(x) 0.001*x^2 + 65*x -785
k <- function(x) 0.9*x^2 -2*x -636
plot(x, f(x), xlab="Elemente in der Reihung", ylab="Indexwert des
Sortieraufwands"), type="l")
// lines(x, g(x), lty=3) //Not sure if it works, but this is irrelevant atm.
As soon as R does the plot command, he states that x is an object he can't
find.
So i propably have to do something like x <- XXXXXXXXXX. What do I insert
for the XXXXXXXXX to make it have the values - say - from 15 to 10000?
Thanks again.
--
View this message in context: http://r.789695.n4.nabble.com/Simple-Problem-Plotting-mathematical-functions-tp4552668p4552894.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list