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
4 changes: 2 additions & 2 deletions altdoc/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
altdoc: 0.7.3
pandoc: 3.10.1
pandoc: '0'
pkgdown: 2.1.3
pkgdown_sha: ~
last_built: 2026-08-15T02:19:49+0000
last_built: 2026-08-16T22:34:16+0000
urls:
reference: https://grantmcdermott.com/tinyplot/man
article: https://grantmcdermott.com/tinyplot/vignettes
190 changes: 95 additions & 95 deletions altdoc/quarto_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ website:
file: vignettes/introduction.qmd
- text: Articles
menu:
- text: Types
file: vignettes/types.qmd
- text: Themes
file: vignettes/themes.qmd
- text: Gallery
file: vignettes/gallery.qmd
- text: Tips & tricks
file: vignettes/tips.qmd
- text: useR! 2025
file: vignettes/useR2025/useR2025.qmd
- text: Types
file: vignettes/types.qmd
- text: Themes
file: vignettes/themes.qmd
- text: Tips & tricks
file: vignettes/tips.qmd
- text: useR! 2025
file: vignettes/useR2025/useR2025.qmd
- text: Gallery
file: vignettes/gallery.qmd
- text: About
menu:
- text: News
file: $ALTDOC_NEWS
- text: Citation
file: $ALTDOC_CITATION
- text: License
file: $ALTDOC_LICENSE
- text: News
file: $ALTDOC_NEWS
- text: Citation
file: $ALTDOC_CITATION
- text: License
file: $ALTDOC_LICENSE
- text: Reference
file: man/tinyplot.qmd
right:
Expand Down Expand Up @@ -64,84 +64,84 @@ website:
file: man/tinyplot_add.qmd
- section: "Types"
contents:
- section: Shapes
contents:
- text: type_area
file: man/type_ribbon.qmd
- text: type_errorbar
file: man/type_errorbar.qmd
- text: type_jitter
file: man/type_jitter.qmd
- text: type_lines
file: man/type_lines.qmd
- text: type_pointrange
file: man/type_errorbar.qmd
- text: type_points
file: man/type_points.qmd
- text: type_polygon
file: man/type_polygon.qmd
- text: type_polypath
file: man/type_polypath.qmd
- text: type_rect
file: man/type_rect.qmd
- text: type_ribbon
file: man/type_ribbon.qmd
- text: type_rug
file: man/type_rug.qmd
- text: type_segments
file: man/type_segments.qmd
- text: type_text
file: man/type_text.qmd
- text: type_tile
file: man/type_tile.qmd
- section: "Visualizations"
contents:
- text: type_barplot
file: man/type_barplot.qmd
- text: type_boxplot
file: man/type_boxplot.qmd
- text: type_chull
file: man/type_chull.qmd
- text: type_density
file: man/type_density.qmd
- text: type_ellipse
file: man/type_ellipse.qmd
- text: type_heatmap
file: man/type_tile.qmd
- text: type_hexbin
file: man/type_hexbin.qmd
- text: type_histogram
file: man/type_histogram.qmd
- text: type_qq
file: man/type_qq.qmd
- text: type_ridge
file: man/type_ridge.qmd
- text: type_spineplot
file: man/type_spineplot.qmd
- text: type_violin
file: man/type_violin.qmd
- section: "Models"
contents:
- text: type_glm
file: man/type_glm.qmd
- text: type_lm
file: man/type_lm.qmd
- text: type_loess
file: man/type_loess.qmd
- text: type_spline
file: man/type_spline.qmd
- section: "Functions"
contents:
- text: type_abline
file: man/type_abline.qmd
- text: type_function
file: man/type_function.qmd
- text: type_hline
file: man/type_abline.qmd
- text: type_summary
file: man/type_summary.qmd
- text: type_vline
file: man/type_abline.qmd
- section: Shapes
contents:
- text: type_area
file: man/type_ribbon.qmd
- text: type_errorbar
file: man/type_errorbar.qmd
- text: type_jitter
file: man/type_jitter.qmd
- text: type_lines
file: man/type_lines.qmd
- text: type_pointrange
file: man/type_errorbar.qmd
- text: type_points
file: man/type_points.qmd
- text: type_polygon
file: man/type_polygon.qmd
- text: type_polypath
file: man/type_polypath.qmd
- text: type_rect
file: man/type_rect.qmd
- text: type_ribbon
file: man/type_ribbon.qmd
- text: type_rug
file: man/type_rug.qmd
- text: type_segments
file: man/type_segments.qmd
- text: type_text
file: man/type_text.qmd
- text: type_tile
file: man/type_tile.qmd
- section: "Visualizations"
contents:
- text: type_barplot
file: man/type_barplot.qmd
- text: type_boxplot
file: man/type_boxplot.qmd
- text: type_chull
file: man/type_chull.qmd
- text: type_density
file: man/type_density.qmd
- text: type_ellipse
file: man/type_ellipse.qmd
- text: type_heatmap
file: man/type_tile.qmd
- text: type_hexbin
file: man/type_hexbin.qmd
- text: type_histogram
file: man/type_histogram.qmd
- text: type_qq
file: man/type_qq.qmd
- text: type_ridge
file: man/type_ridge.qmd
- text: type_spineplot
file: man/type_spineplot.qmd
- text: type_violin
file: man/type_violin.qmd
- section: "Models"
contents:
- text: type_glm
file: man/type_glm.qmd
- text: type_lm
file: man/type_lm.qmd
- text: type_loess
file: man/type_loess.qmd
- text: type_spline
file: man/type_spline.qmd
- section: "Functions"
contents:
- text: type_abline
file: man/type_abline.qmd
- text: type_function
file: man/type_function.qmd
- text: type_hline
file: man/type_abline.qmd
- text: type_summary
file: man/type_summary.qmd
- text: type_vline
file: man/type_abline.qmd
- section: "Themes"
contents:
- text: tinytheme
Expand Down Expand Up @@ -177,6 +177,6 @@ format:
theme:
- cosmo
- custom.scss
fontsize: '110%'
fontsize: "110%"
fontcolor: "#000022"
linkcolor: "#f51459"
21 changes: 18 additions & 3 deletions vignettes/gallery.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ execute:

```{css}
.gslide-desc {
text-align: center;
text-align: center;
font-size: 1.1rem !important;
}
div.gslide-description, .gslide-desc {
background-color: #e0e0e0 !important;
div.gslide-description,
.gslide-desc {
background-color: #e0e0e0 !important;
}
```

Expand Down Expand Up @@ -104,6 +105,20 @@ Click on a plot to get the link to its code.
#| file: "gallery_figs/ridge-aq.R"
```

```{r}
#| lightbox:
#| group: r-graph
#| description: "[Code](https://github.com/grantmcdermott/tinyplot/blob/main/vignettes/gallery_figs/heatmap-mtcars.R){target='_blank'}"
#| file: "gallery_figs/heatmap-mtcars.R"
```

```{r}
#| lightbox:
#| group: r-graph
#| description: "[Code](https://github.com/grantmcdermott/tinyplot/blob/main/vignettes/gallery_figs/hexbin.R){target='_blank'}"
#| file: "gallery_figs/hexbin.R"
```

```{r}
#| lightbox:
#| group: r-graph
Expand Down
12 changes: 12 additions & 0 deletions vignettes/gallery_figs/heatmap-mtcars.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(tinyplot)

m = as.matrix(mtcars)

plt(
m,
type = type_heatmap(scale = "x"),
main = "mtcars heatmap",
cap = "Note: Values are normalised within each x-axis category",
col = "white",
theme = list("heatmap", cex.yaxs = 0.5, cex.xaxs = 1.5)
)
10 changes: 10 additions & 0 deletions vignettes/gallery_figs/hexbin.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
library(tinyplot)

set.seed(1234)
dat = data.frame(x = rnorm(2e4), y = rnorm(2e4))

plt(
y ~ x, data = dat, type = "hexbin",
palette = hcl.colors(100, palette = "agSunset", rev = TRUE),
theme = "clean2"
)
5 changes: 3 additions & 2 deletions vignettes/gallery_figs/ridge-aq.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ aq = transform(
Late = ifelse(Day > 15, "Late", "Early")
)

tinyplot(Month ~ Temp | Temp,
tinyplot(
Month ~ Temp,
data = aq,
type = type_ridge(col = "white"),
type = type_ridge(col = "white", gradient = TRUE),
theme = "ridge2"
)
4 changes: 2 additions & 2 deletions vignettes/tips.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ consecutive quarters of negative growth.

```{r}
# get 1980+ US GDP data from FRED
url = "https://fred.stlouisfed.org/graph/fredgraph.csv?id=GDPC1&cosd=1980-01-01"
gdp = read.csv(url) |>
fred_url = "https://fred.stlouisfed.org/graph/fredgraph.csv?id=GDPC1&cosd=1980-01-01"
gdp = read.csv(url(fred_url, headers = c("User-Agent" = "curl"))) |>
setNames(c("date", "gdp")) |>
transform(date = as.Date(date))

Expand Down