Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r ggplot regression line

ggplot(data,aes(x.plot, y.plot)) +
  stat_summary(fun.data=mean_cl_normal) + 
  geom_smooth(method='lm', formula= y~x)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ggplot #regression #line
ADD COMMENT
Topic
Name
5+9 =