+ - 0:00:00
Notes for current slide
Notes for next slide

datalegreyar R package

Inserting datalegreya font to Rmarkdown documents: the typeface that interweave data curves with text

Emi Tanaka

2018/07/21

1 / 8

{data }§0d|0a|0[--]t|1a|1l|1e|2g|2r|2e|3[++]y|3a|3{text }

2 / 8

{data }§0d|0a|0[--]t|1a|1l|1e|2g|2r|2e|3[++]y|3a|3{text }

"the typeface that interweave data curves with text"

2 / 8

{data }§0d|0a|0[--]t|1a|1l|1e|2g|2r|2e|3[++]y|3a|3{text }

"the typeface that interweave data curves with text"

Now in

datalegreyar

2 / 8

Getting Started

library(datalegreyar)
values <- 4 + 3 * 1:20

There can only be 4 values for the curve (0, 1, 2, 3) so you need to datafy to convert it to the closest level.

fig(datafy(values, "datalegreya"), size=80)

§0d|0a|0t|1a|1l|1e|2g|2r|2e|3y|3a|3

3 / 8

Different types of dots under the curve

Dot (default)

§0d|0a|0t|1a|1l|1e|2g|2r|2e|3y|3a|3

Gradient

§0d|0a|0t|1a|1l|1e|2g|2r|2e|3y|3a|3

Thin

§0d|0a|0t|1a|1l|1e|2g|2r|2e|3y|3a|3

4 / 8

Add four type of symbols

fig(datafy(values, "datalegreya"), size=80,
symbol=setNames(c(1,2,8,9), c("min", "down", "up", "max")))

§0d|0[--]a|0[-]t|1a|1l|1e|2g|2r|2[+]e|3[++]y|3a|3

Add start or end labels

fig(datafy(values, "datalegreya"), size=80, type="gradient",
xlabs=c("data", "text"))

{data }§0d|0a|0t|1a|1l|1e|2g|2r|2e|3y|3a|3{text }

5 / 8

Modify the start value

The default start value is 0 but you can modify this.

fig(datafy(values, "fig is great"), size=80,
start_value=2)

§2f|0i|0g|1 \i|1s|1 \g|2r|2e|2a|3t|3

6 / 8

Spaces

Spaces are not assigned data values by default. You can change this when datafy-ing.

fig(datafy(values, "fig is great", ignore_space=F), size=80)

§0f|0i|0g|1 |1i|1s|2 |2g|2r|2e|3a|3t|3

7 / 8

Curve only

fig(datafy(values), size=40)

§0 |0 |0 |0 |0 |1 |1 |1 |1 |1 |1 |2 |2 |2 |2 |2 |2 |3 |3 |3 |3

8 / 8

{data }§0d|0a|0[--]t|1a|1l|1e|2g|2r|2e|3[++]y|3a|3{text }

2 / 8
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow