https://github.com/nicucalcea/ggspell
Spell checker for text and ggplot objects.
https://github.com/nicucalcea/ggspell
ggplot ggplot-extension ggplot2 r rlang rlanguage spell-check spell-checker spelling spelling-checker
Last synced: about 1 month ago
JSON representation
Spell checker for text and ggplot objects.
- Host: GitHub
- URL: https://github.com/nicucalcea/ggspell
- Owner: nicucalcea
- License: gpl-3.0
- Created: 2023-04-14T23:11:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T12:08:54.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T10:45:03.388Z (7 months ago)
- Topics: ggplot, ggplot-extension, ggplot2, r, rlang, rlanguage, spell-check, spell-checker, spelling, spelling-checker
- Language: R
- Homepage:
- Size: 48.8 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
title: "ggspell"
output: github_document
---```{r, include = FALSE, cache = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%",
cache = TRUE
)
asciicast::init_knitr_engine(
echo = TRUE,
echo_input = FALSE,
startup = quote({
library(ggspell)
set.seed(1) })
)
```Spell check text and ggplot objects with the LanguageTool API.
Install like this:
```{r eval=FALSE}
remotes::install_github("nicucalcea/ggspell")
```Use like this for text.
```{asciicast}
# Check text
ggspell::ggspell("This is a error.")
```Or check an entire plot.
```{asciicast}
# Check plot
starwars_plot <- dplyr::starwars |>
head(10) |>
ggplot2::ggplot(ggplot2::aes(x = height, y = name)) +
ggplot2::geom_col() +
ggplot2::geom_text(x = 168.7, y = 10, label = "Firstannotation") +
ggplot2::labs(title = "This an title mispeling some words",
subtitle = "The subtitle has also erors ,like")ggspell::ggspell(starwars_plot)
```