Learn R Programming

SciencesPo (version 1.4.1)

Plotting: Plot Customizing

Description

Several wrapper functions to deal with ggplot2.

Usage

Previewplot()
PreviewTheme()
align_title_left()
align_title_right()
no_title()
no_y_gridlines()
no_x_gridlines()
no_major_x_gridlines()
no_major_y_gridlines()
no_major_gridlines()
no_minor_x_gridlines()
no_minor_y_gridlines()
no_minor_gridlines()
no_gridlines()
rotate_axes_text(angle)
rotate_x_text(angle)
rotate_y_text(angle)
no_axes()
no_x_axis()
no_y_axis()
no_x_line()
no_y_line()
no_x_text()
no_y_text()
no_ticks()
no_x_ticks()
no_y_ticks()
no_axes_titles()
no_x_title()
no_y_title()
move_legend(position)
legend_bottom()
legend_top()
legend_left()
legend_right()
no_legend()
no_legend_title()

Arguments

angle
the angle of rotation.
position
the location of the legend ('top', 'bottom', 'right', 'left' or 'none').

Examples

Run this code
Previewplot()

Run the code above in your browser using DataLab