rot_x | R Documentation |
Rotate axis text
rot_x(angle = 30, hjust = 1, vjust = NULL, vertical = FALSE, ...)
rot_y(angle = 30, hjust = 1, vjust = NULL, vertical = FALSE, ...)
angle |
passed to |
hjust |
passed to |
vjust |
passed to |
vertical |
if |
... |
passed to |
If x-axis tick labels do not have enough space, consider using
vertical = TRUE
. By default, the tick labels will be justified up to the
x-axis line. Use hjust = "bottom"
(with vertical = TRUE
)
to justify the axis labels toward the bottom margin of the plot. Similar
behavior can be made for y-axis tick labels, but use vertical = TRUE
and
set vjust
to either "left" or "right" to control proximity to the y-axis.
data <- pmplots_data_obs()
dv_pred(data) + rot_x()
## Not run:
cwres_cat(data, x = "CPc") + rot_x(vertical = TRUE)
cwres_cat(data, x = "CPc") + rot_x(vertical = TRUE, hjust = "bottom")
cwres_cat(data, x = "CPc") + rot_y(vertical = TRUE)
cwres_cat(data, x = "CPc") + rot_y(vertical = TRUE, vjust = "left")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.