Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
[email protected],
Hmisc=?ignore-before-r=4.2.0,
quantreg=?ignore-before-r=4.3.0
local::.
needs: check

- uses: r-lib/actions/setup-r-dependencies@v2
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ Suggests:
nlme,
profvis,
quantreg,
quarto,
ragg (>= 1.2.6),
RColorBrewer,
rmarkdown,
roxygen2,
rpart,
sf (>= 0.7-3),
Expand All @@ -76,8 +76,8 @@ Suggests:
xml2
Enhances:
sp
VignetteBuilder:
knitr
VignetteBuilder:
quarto
Config/Needs/website: ggtext, tidyr, forcats, tidyverse/tidytemplate
Config/testthat/edition: 3
Config/usethis/last-upkeep: 2025-04-23
Expand Down
3 changes: 3 additions & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.html
*.R
**/figure-html/
**/libs/
/.quarto/
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Annotation"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -17,14 +26,6 @@ title: "FAQ: Annotation"
#| include: false
library(ggplot2)
library(dplyr)
knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%"
)
```


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Axes"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -16,13 +25,6 @@ title: "FAQ: Axes"
```{r}
#| include: false
library(ggplot2)
knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%")
```

## Label placement
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Barplots"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -18,15 +27,6 @@ title: "FAQ: Barplots"
library(ggplot2)
library(dplyr)
library(tidyr)

knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%"
)
```

## Colors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Customising"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -17,14 +26,6 @@ title: "FAQ: Customising"
#| include: false
library(ggplot2)
library(tibble)
knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%"
)
```

## Legends
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Faceting"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -16,13 +25,6 @@ title: "FAQ: Faceting"
```{r}
#| include: false
library(ggplot2)
knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%")
```

## Panes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
title: "FAQ: Reordering"
format: html
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 300
fig-asp: 0.618
fig-width: 6
out-width: "80%"
---

```{=html}
Expand All @@ -18,15 +27,6 @@ title: "FAQ: Reordering"
library(ggplot2)
library(dplyr)
library(tibble)

knitr::opts_chunk$set(
fig.dpi = 300,
collapse = TRUE,
comment = "#>",
fig.asp = 0.618,
fig.width = 6,
out.width = "80%"
)
```

## Bar plots
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
---
title: "Extending ggplot2"
output: rmarkdown::html_vignette
knitr:
opts_chunk:
collapse: false
comment: "#>"
fig-width: 7
fig-height: 7
fig-align: "center"
description: |
Official extension mechanism provided in ggplot2.
vignette: >
%\VignetteIndexEntry{Extending ggplot2}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
---

```{r}
#| include: false
knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 7, fig.align = "center")
library(ggplot2)
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
---
title: "Using ggplot2 in packages"
output: rmarkdown::html_vignette
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-show: "hide"
description: |
Customising how aesthetic specifications are represented on your plot.
vignette: >
%\VignetteIndexEntry{Using ggplot2 in packages}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
---

```{r}
#| include: false
knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.show = "hide")
library(ggplot2)
```

Expand Down
9 changes: 6 additions & 3 deletions vignettes/ggplot2-specs.Rmd → vignettes/ggplot2-specs.qmd
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
title: "Aesthetic specifications"
output: rmarkdown::html_vignette
knitr:
opts_chunk:
collapse: true
comment: "#>"
fig-dpi: 96
description: |
Customising how aesthetic specifications are represented on your plot.
vignette: >
%\VignetteIndexEntry{Aesthetic specifications}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
---

```{r}
#| include: false
library(ggplot2)
knitr::opts_chunk$set(fig.dpi = 96, collapse = TRUE, comment = "#>")
```

This vignette summarises the various formats that grid drawing functions take. Most of this information is available scattered throughout the R documentation. This appendix brings it all together in one place.
Expand Down
15 changes: 5 additions & 10 deletions vignettes/ggplot2.Rmd → vignettes/ggplot2.qmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
---
title: "Introduction to ggplot2"
output: rmarkdown::html_vignette
knitr:
opts_chunk:
collapse: true
comment: "#>"
description: |
An overview of the layered grammar of graphics.
vignette: >
%\VignetteIndexEntry{Introduction to ggplot2}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
---

```{r}
#| include: false
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

ggplot2 is an R package for producing visualizations of data.
Unlike many graphics packages, ggplot2 uses a conceptual framework based on the grammar of graphics.
This allows you to 'speak' a graph from composable elements, instead of being limited to a predefined set of charts.
Expand Down
16 changes: 5 additions & 11 deletions vignettes/profiling.Rmd → vignettes/profiling.qmd
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
---
title: "Profiling Performance"
knitr:
opts_chunk:
collapse: true
comment: "#>"
author: "Thomas Lin Pedersen"
output: rmarkdown::html_vignette
description: |
Monitoring the performance of your plots.
vignette: >
%\VignetteIndexEntry{Profiling Performance}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEngine{quarto::html}
%\VignetteEncoding{UTF-8}
---

```{r}
#| label: setup
#| include: false
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

In order to continuously monitor the performance of ggplot2
the following piece of code is used to generate a profile and inspect it:

Expand Down