https://github.com/frankiethull/ggpal2
extension of the {pal} library, a ggplot2 assistant
https://github.com/frankiethull/ggpal2
Last synced: 10 days ago
JSON representation
extension of the {pal} library, a ggplot2 assistant
- Host: GitHub
- URL: https://github.com/frankiethull/ggpal2
- Owner: frankiethull
- License: other
- Created: 2024-12-01T21:18:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T00:58:34.000Z (26 days ago)
- Last Synced: 2025-03-21T01:34:13.557Z (26 days ago)
- Language: R
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# ggpal2
The purpose of {ggpal2} is to have an LLM assistant specifically for ggplot2. This is an extension of the {chores} library which uses {ellmer}. This way you can specify which LLM you would like to use for this task.
ggpal2 currently has one pal called "ggplot2". The {chores} is a **replacement** assistant, meaning you highlight code or text and the pal should be able to replace with a ggplot2.
ggpal2 is currently prompt engineered to help with three different methods:
- highlighting a **non-ggplot2 plot**, replacing with ggplot2
- highlighting a **chunk of text explaining a plot**, replacing with ggplot2
- highlighting a **ggplot2, which will edit in-place, cleaning syntax and recommending color-blind friendly colors**## Installation
You can install the development version of ggpal2 like so:
``` r
devtools::install_github("frankiethull/ggpal2")
```### local LLM
If interested in using a local LLM, set up your .Rprofile with the following snippet & restart your session:
```r
options(
.chores_chat = ellmer::chat_ollama(model = "phi4:latest")
)
```where "phi4" is a model that can be pulled for use with locally installed ollama.