Skip to content

Spell checker for text and ggplot objects.

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.md
Notifications You must be signed in to change notification settings

nicucalcea/ggspell

Repository files navigation

ggspell

Spell check text and ggplot objects with the LanguageTool API.

Install like this:

remotes::install_github("nicucalcea/ggspell")

Use like this for text.

# Check text
ggspell::ggspell("This is a error.")

Or check an entire plot.

# 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)

Releases

No releases published

Packages

No packages published

Languages