Skip to content

Commit

Permalink
Change fig-alt to fig.cap
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbarton committed Aug 7, 2024
1 parent 7cd8144 commit 80529c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vignettes/deviations.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: "Deviations from Excel defaults"
output: rmarkdown::html_vignette
output:
rmarkdown::html_vignette:
fig_caption: false
vignette: >
%\VignetteIndexEntry{Deviations from Excel defaults}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -76,7 +78,7 @@ spc_data %>%

**Over-riding to replicate "Making Data Count" Excel output:**

```{r, fig-alt="An SPC chart labelled Data on the y-axis, with dates from 22 March 2021 to 8 April 2021, at 1-day intervals, on the x-axis. From left to right the line shows four grey common cause points followed by a single blue special cause improvement point followed by a further 12 grey common cause points. A caption reports the upper process limit as 4.6, the mean as 1.94 and the lower process limit as -0.72."}
```{r, fig.cap="An SPC chart labelled Data on the y-axis, with dates from 22 March 2021 to 8 April 2021, at 1-day intervals, on the x-axis. From left to right the line shows four grey common cause points followed by a single blue special cause improvement point followed by a further 12 grey common cause points. A caption reports the upper process limit as 4.6, the mean as 1.94 and the lower process limit as -0.72."}
# setting screen_outliers = FALSE produces the same output as Excel
spc_data <- ptd_spc(df, value_field = data, date_field = date, screen_outliers = FALSE)
spc_data %>%
Expand Down

0 comments on commit 80529c4

Please sign in to comment.