Skip to content

Commit

Permalink
moved figures to inst
Browse files Browse the repository at this point in the history
  • Loading branch information
goodekat committed Jan 16, 2025
1 parent 0be4078 commit 76968c4
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ knitr::opts_chunk$set(
echo = TRUE,
warning = FALSE,
message = FALSE,
fig.path = "vignettes/figures/readme-"
fig.path = "inst/figures/readme-"
)
```

# ggResidpanel <img align="right" width="120" height="135" src="vignettes/figures/logo.png">
# ggResidpanel <img align="right" width="120" height="135" src="inst/figures/logo.png">

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/ggResidpanel)](https://CRAN.R-project.org/package=ggResidpanel)
Expand Down Expand Up @@ -98,7 +98,7 @@ This function creates interactive versions of residual diagnostic plot panels gi
resid_interact(penguin_model)
```

![](vignettes/figures/interact.gif)
![](inst/figures/interact.gif)

#### `resid_xpanel`

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# ggResidpanel <img align="right" width="120" height="135" src="vignettes/figures/logo.png">
# ggResidpanel <img align="right" width="120" height="135" src="inst/figures/logo.png">

<!-- badges: start -->

Expand Down Expand Up @@ -98,7 +98,7 @@ penguin_model <- lme4::lmer(heartrate ~ depth + duration + (1|bird), data = peng
resid_panel(penguin_model)
```

![](vignettes/figures/readme-unnamed-chunk-4-1.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-4-1.png)<!-- -->

``` r
# Create a pancel with residual, qq, and yvp plots, add 95% confidence interval
Expand All @@ -107,14 +107,14 @@ resid_panel(penguin_model, plots = c("resid", "qq", "yvp"),
qqbands = TRUE, theme = "classic")
```

![](vignettes/figures/readme-unnamed-chunk-4-2.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-4-2.png)<!-- -->

``` r
# Create a panel with all plots available for a model fit using lmer
resid_panel(penguin_model, plots = "all")
```

![](vignettes/figures/readme-unnamed-chunk-4-3.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-4-3.png)<!-- -->

#### `resid_interact`

Expand All @@ -128,7 +128,7 @@ their own panel by selecting from the plots available for this function.
resid_interact(penguin_model)
```

![](vignettes/figures/interact.gif)
![](inst/figures/interact.gif)

#### `resid_xpanel`

Expand All @@ -140,14 +140,14 @@ variable versus the predictor (x) variables in the model.
resid_xpanel(penguin_model, jitter.width = 0.1)
```

![](vignettes/figures/readme-unnamed-chunk-6-1.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-6-1.png)<!-- -->

``` r
# Create a panel of plots of the response variable versus the predictor variables
resid_xpanel(penguin_model, yvar = "response", jitter.width = 0.1)
```

![](vignettes/figures/readme-unnamed-chunk-6-2.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-6-2.png)<!-- -->

#### `resid_compare`

Expand All @@ -165,7 +165,7 @@ penguin_model_log2 <- lme4::lmer(log(heartrate) ~ depth + duration + I(duration^
resid_compare(list(penguin_model, penguin_model_log2), plots = c("resid", "qq"))
```

![](vignettes/figures/readme-unnamed-chunk-7-1.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-7-1.png)<!-- -->

#### `resid_auxpanel`

Expand All @@ -190,4 +190,4 @@ resid_auxpanel(residuals = penguin_tree_resid,
plots = c("resid", "index"))
```

![](vignettes/figures/readme-unnamed-chunk-8-1.png)<!-- -->
![](inst/figures/readme-unnamed-chunk-8-1.png)<!-- -->
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added inst/figures/readme-unnamed-chunk-6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inst/figures/readme-unnamed-chunk-6-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file removed vignettes/figures/readme-unnamed-chunk-6-1.png
Binary file not shown.
Binary file removed vignettes/figures/readme-unnamed-chunk-6-2.png
Binary file not shown.

0 comments on commit 76968c4

Please sign in to comment.