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 wrapper functions that aims to make visualisation easier with less brainpower required.

Installation

Install stable version from CRAN: install.packages("simplevis")

Install development version from github: devtools::install_github("statisticsNZ/simplevis")

Documentation

Webpage URL:

https://statisticsnz.github.io/simplevis/

R vignette:

vignette("simplevis", "simplevis")


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

259

Version

4.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

July 1st, 2021

Functions in simplevis (4.4.0)

gg_bar_col

Vertical bar ggplot that is coloured.
gg_bar

Vertical bar ggplot.
gg_density_col_facet

Smoothed density ggplot that is coloured and facetted.
gg_bar_facet

Vertical bar ggplot that is facetted.
gg_bar_col_facet

Vertical bar ggplot that is coloured and facetted.
gg_boxplot

Boxplot ggplot.
leaflet_sf_col

Simple feature leaflet map that is coloured.
gg_density_facet

Smoothed density ggplot that is facetted.
gg_density

Smoothed density ggplot.
gg_density_col

Smoothed density ggplot that is coloured.
gg_boxplot_col_facet

Boxplot ggplot that is coloured
gg_point_col

Point ggplot that is coloured.
gg_point

Point ggplot.
gg_boxplot_col

Boxplot ggplot that is coloured
gg_boxplot_facet

Boxplot ggplot that is facetted.
sv_max_dp

Identify the maximum decimal places in a numeric vector.
theme_x_gridlines

Theme for graphs with vertical x gridlines.
mutate_text

Add a quick tooltip text column to data.
theme_mobile_extra_map

Extra theme elements for ggplot2 maps on mobile devices
sv_numeric_bin_labels

Numeric legend labels.
sv_font_size_body

Get default font_size_body
sv_font_size_title

Get default font_size_title
gg_hbar

Horizontal bar ggplot.
example_sf_point

Example sf point object.
gg_hbar_col

Horizontal bar ggplot that is coloured.
example_sf_polygon

Example sf polygon object.
gg_point_col_facet

Point ggplot that is coloured and facetted.
gg_sf

Simple feature ggplot map.
gg_line

Line ggplot.
gg_line_col

Line ggplot that is coloured.
gg_line_col_facet

Line ggplot that is coloured and facetted.
gg_line_facet

Line ggplot that is facetted.
gg_sf_col

Simple feature ggplot map that is coloured.
gg_point_facet

Point ggplot that is facetted.
pal_na

NA palette.
pal_viridis_reorder

Viridis palette reordered.
sv_density_max

Calculate the max density in a gg_density() plot.
%>%

Pipe operator
plotly_camera

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

New Zealand coastline.
sv_density_max_col

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

Theme for graphs with x and y gridlines.
theme_y_gridlines

Theme for graphs with horizontal y gridlines.
pal_d3_reorder

D3 palette reordered.
sv_x_zero_adjust

Automatically adjust x_zero and x_zero_line if necessary
sv_y_zero_adjust

Automatically adjust y_zero and y_zero_line if necessary
gg_hbar_col_facet

Horizontal bar ggplot that is facetted.
gg_hbar_facet

Horizontal bar ggplot that is facetted.
sv_density_max_facet

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

Calculate the breaks for a horizontal axis numeric vector.
sv_density_max_col_facet

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

Simple feature ggplot map that is coloured and facetted.
sv_numeric_breaks_v

Calculate the breaks for a y axis numeric vector.
gg_sf_facet

Simple feature ggplot map that is facetted.
leaflet_basemap

Basemap stack in leaflet.
leaflet_sf

Simple feature leaflet map.
plotly_col_legend

Change colour legend elements order.
run_template

Run shiny template with option to download.
theme_mobile_extra

Extra theme elements for ggplot2 graphs on mobile devices
theme_map

Theme for maps.