dlab-berkeley / R-Data-Visualization-Legacy

D-Lab's 3 hour introduction to data visualization with R. Learn how to create histograms, bar plots, box plots, scatter plots, compound figures, and more using ggplot2 and cowplot.
28 stars 20 forks source link

las parameter #24

Closed e-belfer closed 2 years ago

e-belfer commented 2 years ago

Generally, the following link might be helpful for instructors to have handy in case of 'what's that parameter' questions: https://rdrr.io/r/graphics/par.html

More specifically, the las parameter isn't explained in the body of the text and isn't super common, so having it in the code is perhaps unnecessarily confusing? I'd suggest removing it, but if keeping in, add note to script somewhere in case it comes up, las parameter does the following:

las numeric in {0,1,2,3}; the style of axis labels.

0:

always parallel to the axis [default],

1:

always horizontal,

2:

always perpendicular to the axis,

3:

always vertical.