Learn R Programming

⚠️There's a newer version (0.3.5) of this package.Take me there.

spork (version 0.1.1)

Generalized Label Formatting

Description

The 'spork' syntax describes label formatting concisely, supporting mixed nesting of subscripts and superscripts to arbitrary depth. It intends to be easy to read and write in plain text, and easy to convert to equivalent presentations in 'plotmath' and 'latex'. Greek symbols and a multiplication symbol are explicitly supported. See ?as_spork and ?as_previews.

Copy Link

Version

Install

install.packages('spork')

Monthly Downloads

301

Version

0.1.1

License

GPL-3

Maintainer

Tim Bergsma

Last Published

February 27th, 2020

Functions in spork (0.1.1)

as_previews

Compare Previews
spork_to_plotmath

Convert One Spork to Plotmath
sporklet

Parse Spork
as_previews.spork

Compare Previews of Spork
as_spork.character

Coerce Character to Spork
as_spork

Coerce to Spork
ggplot.plotmath

Plot Plotmath
reexports

Objects exported from other packages
as_preview

Preview Something
[.plotmath

Subset Plotmath
[.latex

Subset Latex
latexToken

Process Latex Token
as_spork.factor

Coerce Factor to Spork
goodToken

Test Whether Token is Parseable
spork_to_latex

Convert One Spork to Latex
ggplot.spork

Plot Spork
plotmathToken

Quote a Token
[.spork

Subset Spork
[[.plotmath

Element-select Plotmath
[[.spork

Element-select Spork
[[.latex

Element-select Latex
as_plotmath.spork

Convert Spork to Plotmath
as_preview.plotmath

Preview Spork as Plotmath
as.expression.plotmath

Coerce Plotmath to Expression
as_preview.latex

Preview Spork as Latex
as.png.plotmath

Convert Plotmath to PNG
as_latex.spork

Convert Spork to Latex
as_latex

Coerce to Latex
as.png.spork

Convert Spork to PNG
as_plotmath

Coerce to Plotmath