Skip to content
Prev 4948 / 7419 Next

Ancova Plot R

Luis--
I assume that especie is a factor, else it would be multiple regression.
You do not give much information on what you want your graph to look like.
If you want the linear regression line for each especie, with confidence
bands around those lines, you can use ggplot2 (untested code):
library(ggplot2)
a$lPeso <- log(Peso)
p <- gplot(a,aes(x=Radio,y=lPeso)) + geom_point(aes(color=especie))
p + geom_smooth(aes(group=especie),method='lm')

I hope that this gets you started in the right direction.

Tom 2

On Mon, Mar 16, 2015 at 9:38 PM, Luis Fernando Garc?a <luysgarcia at gmail.com>
wrote: