Learn R Programming

RplotterPkg

The goal of RplotterPkg is to provide easy access to the many ggplot2 geom plotting routines for everyday use. The package uses a functional approach along with the fast, efficient data frame processing from data.table.

Installation

You can install the development version of RplotterPkg from GitHub with:

Using pak::pak():

pak::pak("deandevl/RplotterPkg")

Using devtools::install_github():

devtools::install_github("deandevl/RplotterPkg")

Examples

The following script shows how simple it is to create a standard scatter plot. Other standard plots include bar, box, density, density_ridge, histogram, range, heatmap, and stick plots.

Other functions for plots are available including multi_panel, spread_level, stem_leaf, and symmetry.

Additional examples showing heatmap, waffle, and stem_leaf are available here.

library(ggplot2)
library(RplotterPkg)

RplotterPkg::create_scatter_plot(
    df = ggplot2::economics,
    aes_x = "date",
    aes_y = "unemploy",
    pts_shape = 21,
    pts_fill = "black",
    line_color = "violet",
    connect = TRUE,
    title = "US Monthly Unemployment",
    subtitle = "July, 1967 to April, 2015 (in thousands)",
    x_title = "Date",
    y_title = "Unemployment",
    rot_y_tic_label = TRUE,
    x_date_labels = "%Y-%b",
    x_major_date_breaks = "5 year",
    y_limits = c(0, 16000),
    y_major_breaks = seq(0, 16000, 2000),
    show_minor_grids = F,
    bold_y = 8000,
    bold_y_color = "red",
    bold_y_linetype = "dashed"
  )

Copy Link

Version

Install

install.packages('RplotterPkg')

Monthly Downloads

120

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Rick Dean

Last Published

March 5th, 2025

Functions in RplotterPkg (0.1.3)

create_heatmap

create_heatmap
boston_marathon

boston_marathon data
car_stats

car_stats data
create_histogram_plot

create_histogram_plot
create_density_ridge_plot

create_density_ridge_plot
create_box_plot

create_box_plot
chick_weights

chick_weights data
air_passengers

air_passengers data
create_stick_plot

create_stick_plot
create_sf_plot

create_sf_plot
create_table_graphic

create_table_graphic
farms

farms data
create_table

create_table
create_range_plot

create_range_plot
create_raster_plot

create_raster_plot
create_scatter_plot

create_scatter_plot
create_waffle_chart

create_waffle_chart
kentucky_counties

kentucky_counties data
gapminder_data

gapminder_data
get_grob_component

get_grob_component
homeruns_2000

homeruns_2000 data
midwest

midwest data
kentucky_elevation

kentucky_elevation data
spread_level_plot

spread_level_plot
spinrates

spinrates data
multi_panel_grid

multi_panel_grid
religion

religion data
sleep

sleep data
stem_leaf_display

stem_leaf_display
organdata

organdata data
states

states data
penguins_stats

penguins_stats data
people

people data
percentile_table

percentile_table
symmetry_plot

symmetry_plot
world_coffee

world_coffee data
create_density_plot

create_density_plot
create_bar_plot

create_bar_plot