Plotting - Non-linearity and Heteroscedasticity in Regression Models

44 views
Skip to first unread message

BHM

unread,
Nov 1, 2013, 11:43:26 AM11/1/13
to ggp...@googlegroups.com
Hi, 

Referring to the attached plot - how can such models be plotted in ggplot.  

Sample data could be any regression model, say the following: 

attach(cars)
r.mod = lm(dist~speed,data=cars)



Regards /
Regression-Plot.png

Dennis Murphy

unread,
Nov 1, 2013, 1:49:22 PM11/1/13
to BHM, ggplot2
ggplot2 does not do 3D plotting. Lattice might be able to do something
like this, though, and the latticeExtra packages has a ggplot2like
theme function to make it resemble a ggplot2 graph.

Dennis
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages