Learn R Programming

⚠️There's a newer version (7.1.0) of this package.Take me there.

simplevis

Purpose

{simplevis} is a package of {ggplot2} and {leaflet} wrapper functions that aims to to simplify beautiful {ggplot2} and {leaflet} visualisation. This is the precursor package to the {ggblanket} package.

Installation

Stable version from CRAN:

install.packages("simplevis")

Development version from github:

devtools::install_github("StatisticsNZ/simplevis")

Get started

Click here to get started.


Copyright and Licensing

The package is Crown copyright (c) 2020, Statistics New Zealand on behalf of the New Zealand Government, and is licensed under the MIT License.

This document is Crown copyright (c) 2020, Statistics New Zealand on behalf of the New Zealand Government, and is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

Copy Link

Version

Install

install.packages('simplevis')

Monthly Downloads

124

Version

6.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

June 7th, 2022

Functions in simplevis (6.3.0)

gg_bar_facet

Bar ggplot that is facetted.
example_borders

Example sf object of the New Zealand coastline.
example_polygon

Example sf polygon object.
example_stars

Example stars object.
gg_density_facet

Density ggplot that is facetted.
gg_density_col_facet

Density ggplot that is coloured and facetted.
gg_boxplot_col_facet

Boxplot ggplot that is coloured and facetted.
gg_boxplot_facet

Boxplot ggplot that is facetted.
gg_boxplot

Boxplot ggplot.
gg_hpointrange_col

Horizontal pointrange ggplot that is coloured.
gg_hpointrange

Horizontal pointrange ggplot.
gg_hboxplot_col_facet

Horizontal boxplot ggplot that is coloured and facetted.
gg_hbar_col_facet

Horizontal bar ggplot that is coloured and facetted.
gg_histogram_col_facet

Histogram ggplot that is coloured and facetted.
gg_boxplot_col

Boxplot ggplot that is coloured.
gg_hbar_facet

Horizontal bar ggplot that is facetted.
example_point

Example sf point object.
gg_hbar

Horizontal bar ggplot.
gg_hbar_col

Horizontal bar ggplot that is coloured.
gg_line_col

Line ggplot that is coloured.
gg_hboxplot_facet

Horizontal boxplot ggplot that is facetted.
gg_line

Line ggplot.
gg_histogram_col

Histogram ggplot that is coloured.
gg_histogram

Histogram ggplot.
gg_density_col

Density ggplot that is coloured.
gg_bar_col

Bar ggplot that is coloured.
gg_density

Density ggplot.
gg_bar

Bar ggplot.
gg_pointrange

Pointrange ggplot.
gg_pointrange_col

Pointrange ggplot that is coloured.
gg_line_facet

Line ggplot that is facetted.
gg_point_col

Point ggplot that is coloured.
gg_line_col_facet

Line ggplot that is coloured and facetted.
gg_point

Point ggplot.
gg_hboxplot

Horizontal boxplot ggplot.
gg_hviolin_col

Horizontal violin ggplot that is coloured.
gg_sf_col_facet

Simple feature ggplot map that is coloured and facetted.
gg_sf

Simple feature ggplot map.
gg_hviolin

Horizontal violin ggplot.
gg_hboxplot_col

Horizontal boxplot ggplot that is coloured.
gg_smooth_col_facet

Smoothed ggplot that is coloured and facetted.
gg_sf_facet

Simple feature ggplot map that is facetted.
gg_violin_col

Violin ggplot that is coloured.
summarise_boxplot_outliers

Summarise outliers in a dataset or tibble.
gg_sf_col

Simple feature ggplot map that is coloured.
gg_histogram_facet

Histogram ggplot that is facetted.
gg_hviolin_col_facet

Horizontal violin ggplot that is coloured and facetted.
gg_violin_facet

Violin ggplot that is facetted.
gg_smooth_facet

Smoothed ggplot that is facetted.
gg_violin_col_facet

Violin ggplot that is coloured and facetted.
leaf_stars_col

Stars leaflet map that is coloured.
leaf_stars

Stars leaflet map.
sv_interval_labels_chr

Convert bin cuts to simple and pretty labels.
summarise_boxplot_stats

Summarise boxplot stats.
gg_theme

Quick theme for a ggplot.
gg_hviolin_facet

Horizontal violin ggplot that is facetted.
theme_mobile_extra

Theme extra elements for a ggplot2 on mobile devices.
interval_labels

Convert numeric or interval cuts to simple and pretty labels.
%>%

Pipe operator
gg_tile_col

Tile ggplot that is coloured.
sv_interval_labels_num

Convert numeric bin cuts to simple and pretty labels.
mutate_text

Add 'HTML' strings column of variable names and values.
leaf_basemap

Basemap stack in leaflet.
leaf_clear

In shiny, clear all features, images and legends.
pal_d3_mix

D3 palette reordered.
plotly_camera

Remove plotly buttons from the mode bar, other than the camera.
sv_density_max_col_facet

Calculate the max density in a gg_density_col_facet(..., position == "identity") plot.
gg_hpointrange_col_facet

Horizontal pointrange ggplot that is coloured and facetted.
gg_hpointrange_facet

Horizontal pointrange ggplot that is facetted.
gg_pointrange_col_facet

Pointrange ggplot that is coloured and facetted.
sv_density_max_facet

Calculate the max density in a gg_density_facet() plot.
sv_y_zero_adjust

Automatically adjust y_zero and y_zero_line if necessary
sv_x_zero_adjust

Automatically adjust x_zero and x_zero_line if necessary
gg_stars

Stars ggplot map.
gg_stars_col

Stars ggplot map that is coloured.
leaf_sf

Simple feature leaflet map.
gg_pointrange_facet

Pointrange ggplot that is facetted.
pal_na

NA palette.
leaf_sf_col

Simple feature leaflet map that is coloured.
pal_viridis_mix

Viridis palette reordered.
gg_point_facet

Point ggplot that is facetted.
gg_point_col_facet

Point ggplot that is coloured and facetted.
gg_smooth

Smoothed ggplot.
sv_font_size_title

Get default font_size_title
sv_font_size_body

Get default font_size_body
gg_smooth_col

Smoothed ggplot that is coloured.
gg_violin

Violin ggplot.
plotly_col_legend

Change colour legend elements order.
gg_tile_col_facet

Tile ggplot that is coloured and facetted.
sv_density_max

Calculate the max density in a gg_density() plot.
simplevis-package

simplevis: Wrappers to Simplify Beautiful 'ggplot2' and 'leaflet' Visualisation
sv_density_max_col

Calculate the max density in a gg_density_col(..., position == "identity") plot.
sv_numeric_breaks_v

Calculate vertical breaks.
sv_numeric_breaks_h

Calculate horizontal numeric breaks.
gg_bar_col_facet

Bar ggplot that is coloured and facetted.