Description Usage Arguments Value Examples

Plot scale-location (also called spread-location plot) in ggplot.

1 2 | ```
gg_scalelocation(fitted.lm, method = "loess", scale.factor = 1,
se = FALSE)
``` |

`fitted.lm` |
a fitted linear model (i.e. lm, glm) that contains fitted regression |

`method` |
smoothing method of fitted line on scale-location plot. eg. "lm", "glm", "gam", "loess", "rlm". See http://docs.ggplot2.org/current/geom_smooth.html for more details. |

`scale.factor` |
numeric; scales the point size and linewidth to allow customized viewing. Defaults to 1. |

`se` |
logical; determines whether se belt should be plotted on plot |

A ggplot object that contains scale-location graph

1 2 3 4 | ```
library(MASS)
data(Cars93)
cars_lm <- lm(Price ~ Passengers + Length + RPM, data = Cars93)
gg_scalelocation(cars_lm)
``` |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.