diff --git a/docs/404.html b/docs/404.html index 754e85e..03ea8ad 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,66 +1,27 @@ - - - - + + + + - Page not found (404) • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - -
-
- + +
+ + + - - -
+
+
-
+ + - - diff --git a/docs/authors.html b/docs/authors.html index d4bf225..41bce1d 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -1,66 +1,12 @@ - - - - - - - -Authors • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Authors and Citation • gglm - + + - - - - -
-
-
- -
+
- @@ -123,22 +76,20 @@

Authors

-
- +
- - + + diff --git a/docs/index.html b/docs/index.html index bd43204..07e5ea5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,7 +12,7 @@ - + +
- - -
+
@@ -117,59 +49,60 @@

gglm

Provides four standard visual model diagnostic plots with `ggplot2`.

-
gglm(data, theme = ggplot2::theme_gray(), ...)
- -

Arguments

- - - - - - - - - - - - - - -
data

A model object of type `lm` or `glm`.

theme

The theme of the `ggplot`s to be produced.

...

Currently ignored. For extendability.

- -

Value

- -

A a `ggplot2` object for visual diagnostic of model validity.

- -

Examples

-
data(mtcars) -m1 <- lm(mpg ~ cyl + disp + hp, data = mtcars) -gglm(m1) -
+
+
gglm(data, theme = ggplot2::theme_gray(), ...)
+
+ +
+

Arguments

+
data
+

A model object of type `lm` or `glm`.

+ + +
theme
+

The theme of the `ggplot`s to be produced.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A a `ggplot2` object for visual diagnostic of model validity.

+
+ +
+

Examples

+
data(mtcars)
+m1 <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+gglm(m1)
+
+
+
+
-
- +
- - + + diff --git a/docs/reference/index.html b/docs/reference/index.html index 0296ea5..72f1291 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -1,66 +1,12 @@ - - - - - - - -Function reference • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Function reference • gglm - - + + - - -
-
- -
- -
+
- - - - - - - - - - -
-

All functions

+ - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - -
+

All functions

+

gglm()

gglm

+
+

list_model_classes()

+

list_model_classes

stat_cooks_leverage()

stat_cooks_leverage

+

stat_cooks_obs()

stat_cooks_obs

+

stat_fitted_resid()

stat_fitted_resid

+

stat_normal_qq()

stat_normal_qq

+

stat_resid_hist()

stat_resid_hist

+

stat_resid_leverage()

stat_resid_leverage

+

stat_scale_location()

stat_scale_location

- +
+
-
- +
- - + + diff --git a/docs/reference/list_model_classes.html b/docs/reference/list_model_classes.html new file mode 100644 index 0000000..f836ad7 --- /dev/null +++ b/docs/reference/list_model_classes.html @@ -0,0 +1,121 @@ + +list_model_classes — list_model_classes • gglm + + +
+
+ + + +
+
+ + +
+

Returns the possible model classes that `gglm` works with.

+
+ +
+
list_model_classes(...)
+
+ +
+

Arguments

+
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A character vector containing the possible model classes that `gglm` +works with.

+
+
+

Note

+

Note that these are not always the exact name of the class that that +can be used. This is due to how some methods are written in the packages +`gglm` imports. For example, the model class "merMod" refers to a variety of +model outputs from `lme4`, even when the outputted class is not called +"merMod".

+
+ +
+

Examples

+
list_model_classes()
+#>  [1] "mlogit"        "rma"           "poissonmfx"    "default"      
+#>  [5] "lmrob"         "rqs"           "prcomp"        "rq"           
+#>  [9] "glmRob"        "polr"          "mjoint"        "stl"          
+#> [13] "glmmadmb"      "survreg"       "drc"           "kmeans"       
+#> [17] "fixest"        "merMod"        "nlrq"          "factanal"     
+#> [21] "htest"         "lm"            "glmrob"        "smooth.spline"
+#> [25] "ivreg"         "gam"           "sarlm"         "mfx"          
+#> [29] "poLCA"         "felm"          "negbinmfx"     "glmmTMB"      
+#> [33] "glm"           "clm"           "NULL"          "gamm4"        
+#> [37] "speedlm"       "Sarlm"         "gls"           "pam"          
+#> [41] "decomposed.ts" "brmsfit"       "speedglm"      "logitmfx"     
+#> [45] "betamfx"       "data.frame"    "plm"           "Mclust"       
+#> [49] "loess"         "probitmfx"     "coxph"         "ranef.mer"    
+#> [53] "lmRob"         "betareg"       "nls"           "rlm"          
+#> [57] "margins"       "lme"          
+
+
+
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.6.

+
+ +
+ + + + + + + + diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html new file mode 100644 index 0000000..8d6bece --- /dev/null +++ b/docs/reference/reexports.html @@ -0,0 +1,89 @@ + +Objects exported from other packages — reexports • gglm + + +
+
+ + + +
+
+ + +
+

These objects are imported from other packages. Follow the links +below to see their documentation.

+
broom
+

augment

+ + +
+ + + +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.6.

+
+ +
+ + + + + + + + diff --git a/docs/reference/stat_cooks_leverage-1.png b/docs/reference/stat_cooks_leverage-1.png index 545f156..63abe04 100644 Binary files a/docs/reference/stat_cooks_leverage-1.png and b/docs/reference/stat_cooks_leverage-1.png differ diff --git a/docs/reference/stat_cooks_leverage.html b/docs/reference/stat_cooks_leverage.html index 6e29ee6..09b51f1 100644 --- a/docs/reference/stat_cooks_leverage.html +++ b/docs/reference/stat_cooks_leverage.html @@ -1,67 +1,12 @@ - - - - - - - -stat_cooks_leverage — stat_cooks_leverage • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_cooks_leverage — stat_cooks_leverage • gglm - - - - + + -
-
- -
- -
+
@@ -117,73 +49,74 @@

stat_cooks_leverage

Cook's Distance vs. Leverage

-
stat_cooks_leverage(
-  alpha = 0.5,
-  method = "loess",
-  color = "steelblue",
-  se = FALSE,
-  ...
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
alpha

Adjust transparency of points.

method

Method for fitting the line to the points.

color

Color of the line.

se

Keep standard error bands around line?

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting Cook's Distance vs. Leverage.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_cooks_leverage() -
+
+
stat_cooks_leverage(
+  alpha = 0.5,
+  method = "loess",
+  color = "steelblue",
+  se = FALSE,
+  ...
+)
+
+ +
+

Arguments

+
alpha
+

Adjust transparency of points.

+ + +
method
+

Method for fitting the line to the points.

+ + +
color
+

Color of the line.

+ + +
se
+

Keep standard error bands around line?

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting Cook's Distance vs. Leverage.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_cooks_leverage()
+
+
+
+
-
- - + + diff --git a/docs/reference/stat_cooks_obs-1.png b/docs/reference/stat_cooks_obs-1.png index 444ca57..f913629 100644 Binary files a/docs/reference/stat_cooks_obs-1.png and b/docs/reference/stat_cooks_obs-1.png differ diff --git a/docs/reference/stat_cooks_obs.html b/docs/reference/stat_cooks_obs.html index bf60eb2..0339165 100644 --- a/docs/reference/stat_cooks_obs.html +++ b/docs/reference/stat_cooks_obs.html @@ -1,67 +1,12 @@ - - - - - - - -stat_cooks_obs — stat_cooks_obs • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_cooks_obs — stat_cooks_obs • gglm - + + - - - -
-
- -
- -
+
@@ -117,51 +49,52 @@

stat_cooks_obs

`ggplot2` layer for plotting cook's distance by observation number.

-
stat_cooks_obs(...)
+
+
stat_cooks_obs(...)
+
-

Arguments

- - - - - - -
...

Currently ignored. For extendability.

+
+

Arguments

+
...
+

Currently ignored. For extendability.

-

Value

+
+
+

Value

+ -

A `ggplot2` layer for plotting cook's distance by observation number.

+

A `ggplot2` layer for plotting cook's distance by observation number.

+
-

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_cooks_obs() -
+
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_cooks_obs()
+
+
+
+
- - - + + diff --git a/docs/reference/stat_fitted_resid-1.png b/docs/reference/stat_fitted_resid-1.png index 84ad1dd..6090244 100644 Binary files a/docs/reference/stat_fitted_resid-1.png and b/docs/reference/stat_fitted_resid-1.png differ diff --git a/docs/reference/stat_fitted_resid.html b/docs/reference/stat_fitted_resid.html index 3c7f1bf..7b4f580 100644 --- a/docs/reference/stat_fitted_resid.html +++ b/docs/reference/stat_fitted_resid.html @@ -1,67 +1,12 @@ - - - - - - - -stat_fitted_resid — stat_fitted_resid • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_fitted_resid — stat_fitted_resid • gglm + + - - - - -
-
- -
- -
+
@@ -117,55 +49,56 @@

stat_fitted_resid

`ggplot2` layer for plotting a fitted vs. residual scatter plot.

-
stat_fitted_resid(alpha = 0.5, ...)
- -

Arguments

- - - - - - - - - - -
alpha

Adjust transparency of points.

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting a fitted vs. residual scatter plot.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_fitted_resid() -
+
+
stat_fitted_resid(alpha = 0.5, ...)
+
+ +
+

Arguments

+
alpha
+

Adjust transparency of points.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting a fitted vs. residual scatter plot.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_fitted_resid()
+
+
+
+
- - - + + diff --git a/docs/reference/stat_normal_qq-1.png b/docs/reference/stat_normal_qq-1.png index 7e5efeb..040d4c8 100644 Binary files a/docs/reference/stat_normal_qq-1.png and b/docs/reference/stat_normal_qq-1.png differ diff --git a/docs/reference/stat_normal_qq.html b/docs/reference/stat_normal_qq.html index 4bbabe3..c89b869 100644 --- a/docs/reference/stat_normal_qq.html +++ b/docs/reference/stat_normal_qq.html @@ -1,67 +1,12 @@ - - - - - - - -stat_normal_qq — stat_normal_qq • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_normal_qq — stat_normal_qq • gglm + + - - - - -
-
- -
- -
+
@@ -117,55 +49,56 @@

stat_normal_qq

Normal QQ plot.

-
stat_normal_qq(alpha = 0.5, ...)
- -

Arguments

- - - - - - - - - - -
alpha

Adjust transparency of points.

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting a Normal Q-Q plot.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_normal_qq() -
+
+
stat_normal_qq(alpha = 0.5, ...)
+
+ +
+

Arguments

+
alpha
+

Adjust transparency of points.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting a Normal Q-Q plot.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_normal_qq()
+
+
+
+
- - - + + diff --git a/docs/reference/stat_resid_hist-1.png b/docs/reference/stat_resid_hist-1.png index e75c247..a9a79d5 100644 Binary files a/docs/reference/stat_resid_hist-1.png and b/docs/reference/stat_resid_hist-1.png differ diff --git a/docs/reference/stat_resid_hist.html b/docs/reference/stat_resid_hist.html index 3eac11d..bb96bd4 100644 --- a/docs/reference/stat_resid_hist.html +++ b/docs/reference/stat_resid_hist.html @@ -1,67 +1,12 @@ - - - - - - - -stat_resid_hist — stat_resid_hist • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_resid_hist — stat_resid_hist • gglm + + - - - - -
-
- -
- -
+
@@ -117,55 +49,56 @@

stat_resid_hist

Visualize the distribution of the residuals of a model.

-
stat_resid_hist(bins = 30, ...)
- -

Arguments

- - - - - - - - - - -
bins

Adjust the number of bins.

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting a histogram of residuals.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_resid_hist() -
+
+
stat_resid_hist(bins = 30, ...)
+
+ +
+

Arguments

+
bins
+

Adjust the number of bins.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting a histogram of residuals.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_resid_hist()
+
+
+
+
- - - + + diff --git a/docs/reference/stat_resid_leverage-1.png b/docs/reference/stat_resid_leverage-1.png index 86e97d4..56e3616 100644 Binary files a/docs/reference/stat_resid_leverage-1.png and b/docs/reference/stat_resid_leverage-1.png differ diff --git a/docs/reference/stat_resid_leverage.html b/docs/reference/stat_resid_leverage.html index c7fb449..c1b6f40 100644 --- a/docs/reference/stat_resid_leverage.html +++ b/docs/reference/stat_resid_leverage.html @@ -1,67 +1,12 @@ - - - - - - - -stat_resid_leverage — stat_resid_leverage • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_resid_leverage — stat_resid_leverage • gglm - - - - + + -
-
- -
- -
+
@@ -117,73 +49,74 @@

stat_resid_leverage

Residual vs. leverage plot.

-
stat_resid_leverage(
-  alpha = 0.5,
-  method = "loess",
-  se = FALSE,
-  color = "steelblue",
-  ...
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
alpha

Adjust transparency of points.

method

Method for fitting the line to the points.

se

Keep standard error bands around line?

color

Color of the line.

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting a fitted vs. residual scatter plot.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_resid_leverage() -
+
+
stat_resid_leverage(
+  alpha = 0.5,
+  method = "loess",
+  se = FALSE,
+  color = "steelblue",
+  ...
+)
+
+ +
+

Arguments

+
alpha
+

Adjust transparency of points.

+ + +
method
+

Method for fitting the line to the points.

+ + +
se
+

Keep standard error bands around line?

+ + +
color
+

Color of the line.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting a fitted vs. residual scatter plot.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_resid_leverage()
+
+
+
+
- - - + + diff --git a/docs/reference/stat_scale_location-1.png b/docs/reference/stat_scale_location-1.png index c03d55b..a089fd4 100644 Binary files a/docs/reference/stat_scale_location-1.png and b/docs/reference/stat_scale_location-1.png differ diff --git a/docs/reference/stat_scale_location.html b/docs/reference/stat_scale_location.html index 13d3e09..0372999 100644 --- a/docs/reference/stat_scale_location.html +++ b/docs/reference/stat_scale_location.html @@ -1,67 +1,12 @@ - - - - - - - -stat_scale_location — stat_scale_location • gglm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -stat_scale_location — stat_scale_location • gglm - - + + - - -
-
- -
- -
+
@@ -117,78 +49,79 @@

stat_scale_location

Scale location diagnostic plot.

-
stat_scale_location(
-  alpha = 0.5,
-  na.rm = TRUE,
-  se = FALSE,
-  method = "loess",
-  color = "steelblue",
-  ...
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
alpha

Adjust the transparency of points.

na.rm

Remove points with value NA?

se

Keep standard error bands around line?

method

Method for fitting the line to the points.

color

Color of the line.

...

Currently ignored. For extendability.

- -

Value

- -

A `ggplot2` layer for plotting the scale location diagnostic plot.

- -

Examples

-
data(mtcars) -model <- lm(mpg ~ cyl + disp + hp, data = mtcars) -ggplot2::ggplot(data = model) + stat_scale_location() -
+
+
stat_scale_location(
+  alpha = 0.5,
+  na.rm = TRUE,
+  se = FALSE,
+  method = "loess",
+  color = "steelblue",
+  ...
+)
+
+ +
+

Arguments

+
alpha
+

Adjust the transparency of points.

+ + +
na.rm
+

Remove points with value NA?

+ + +
se
+

Keep standard error bands around line?

+ + +
method
+

Method for fitting the line to the points.

+ + +
color
+

Color of the line.

+ + +
...
+

Currently ignored. For extendability.

+ +
+
+

Value

+ + +

A `ggplot2` layer for plotting the scale location diagnostic plot.

+
+ +
+

Examples

+
data(mtcars)
+model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
+ggplot2::ggplot(data = model) + stat_scale_location()
+
+
+
+
- - - + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml new file mode 100644 index 0000000..c4ab959 --- /dev/null +++ b/docs/sitemap.xml @@ -0,0 +1,45 @@ + + + + /404.html + + + /authors.html + + + /index.html + + + /reference/gglm.html + + + /reference/index.html + + + /reference/list_model_classes.html + + + /reference/reexports.html + + + /reference/stat_cooks_leverage.html + + + /reference/stat_cooks_obs.html + + + /reference/stat_fitted_resid.html + + + /reference/stat_normal_qq.html + + + /reference/stat_resid_hist.html + + + /reference/stat_resid_leverage.html + + + /reference/stat_scale_location.html + +