[R] plotting log regression
mrkooper
tommy.jirku at gmx.at
Fri Dec 14 14:58:23 CET 2012
I want to plot the regression line of a log regression into a plot with my
normal, nonlog, data.
for example
x <- (1,2,3,4,5)
y <- (6,7,8,9,10)
plot (x,y)
I tried a log-regression by
a <- glm (log(y) ~ log(x))
and then i tried to insert the answer to my graph, where the standard values
are shown:
abline (a, col="red")
unfortunately it does not work....
--
View this message in context: http://r.789695.n4.nabble.com/plotting-log-regression-tp4653087.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list