The bright side of plots (R plot notes)

It will be useful to consult Rmarkdown notes because I often use Rmarkdown to render ggplot.

Font

Font size

Global adjustment (e.g. the default font size is small when rendering with Rmarkdown with )

theme’s basic size

See individual adjustment here and also in this RStudio2021 conference talk and this

Font format (e.g. subscripts)

ggtext is a much more elegant solution than using expression.

Font family

showtext is very useful for adding font from google.

This post show the font families available on Windows.

Combine paste and expression

https://stackoverflow.com/a/4992890/9580812

Colours

library(paletteer)
paletteer_d("basetheme::dark")

3D rendering

RayShader

3D graphics are often singled out as bad examples in data visualization, but in the case of maps and heatmaps, they are really helpful. Watch this talk for more details.

Rough plots

rroughviz uses base-r syntax and renders well formatted graphs.

ggrough transforms ggplot graphs but because the latest update was two years ago, there is some incompatibility.

Avatar
Tim

Personalizing medicine

Related