.:rtemis 0.79: Welcome, egenn [x86_64-apple-darwin15.6.0 (64-bit): Defaulting to 4/4 available cores] Online documentation & vignettes: https://rtemis.netlify.com
Visualization is a central part of any data analysis pipeline. Ideally, you want to visualize data before and after all operations, if possible. Depending on the kind and amount of data you are working on, this can range from straightforward to rather challening, but it’s always worthwhile!
rtemis provides functions for static graphics - the
mplot3 family of functions - as well as interactive graphics - the
The next two chapters cover static and interactive graphics, respectively. First, let’s look at the available color palettes and themes available to both sets of tools.
4.1 Color palettes
rtemis includes a number of builtin color palettes, along with a few functions to create, manipulate, and preview colors.
[2019-08-26 00:12:12 rtPalette] The following palettes are available:  "rtCol" "rtCol1" "rtCol2" "rtCol3"  "pennCol" "imperialCol" "ucsfCol" "ucsfPalette"  "berkeleyCol" "stanfordCol" "usfCol" "ucsdCol"  "uciCol" "uclaCol" "ucdCol" "uwCol"  "nihCol" "nhsCol" "appleCol" "googleCol"  "amazonCol" "microsoftCol"
Let’s use the
colorPreview function to look at a selection of the available palettes:
Shown here with the darkgrid theme, the default rtemis pallette is slightly pastel and tries to provide good contrast between groups:
Let’s try a different (rather recognizable) palette:
dplot3 families of functions support different themes:
4.3 System Defaults
You can optionally set system defaults by running the following lines in R or adding them to your
.Rprofile file, which is usually found in your home directory. For example, to default to the “darkgrid” theme (works great with a dark RStudio theme), you can use the following:
The first line sets the theme for all
dplot3 functions that support it, and the second is specific to
mplot3.fit. The third line defines the default palette, which works with both light and dark themes.