Learn R Programming

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

simplevis

Introduction

simplevis is a package of ggplot2 and leaflet wrapper functions designed to simplify the creation of high quality graph and map visualisations.

These functions only require inputs of data, variables and titles to provide beautiful interactive or image visualisations. However they allow for more flexibility if required.

The intent is that high quality well-designed graphs and maps can be made more consistently with less effort, code and expertise than would otherwise be 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 http://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

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

March 19th, 2020

Functions in simplevis (1.0.0)

ggplot_box

Vertical box ggplot.
example_stars_nz_drp

Example stars object of New Zealand modelled river water DRP concentrations.
ggplot_hbar_col

Horizontal bar ggplot that is coloured.
ggplot_scatter_facet

Scatter ggplot that is facetted.
ggplot_scatter_col_facet

Scatter ggplot that is coloured and facetted.
example_stars_nz_no3n

Example stars object of New Zealand modelled river water NO3N concentrations.
ggplot_line_col

Line ggplot that is coloured.
ggplot_line

Line ggplot.
example_sf_nz_livestock

Example sf object of New Zealand livestock.
ggplot_scatter_col

Scatter ggplot that is coloured.
ggplot_scatter

Scatter ggplot.
ggplot_stars

Map of an array in ggplot.
ggplot_stars_col

Map of an array in ggplot that is coloured.
ggplot_line_col_facet

Line ggplot that is coloured and facetted.
ggplot_sf_col_facet

Map of simple features in ggplot that is coloured and facetted.
ggplot_hbar_facet

Horizontal bar ggplot that is facetted.
ggplot_stars_col_facet

Map of an array in ggplot that is coloured and facetted.
ggplot_hbar_col_facet

Horizontal bar ggplot that is coloured and facetted.
leaflet_stars

Map of an array in leaflet.
leaflet_stars_col

Map of an array in leaflet that is coloured.
ggplot_line_facet

Line ggplot that is facetted.
ggplot_stars_facet

Map of an array in ggplot that is facetted.
pal_snz

Colour palette for categorical variables.
ggplot_sf

Map of simple features in ggplot.
theme_stars

Theme for ggplot maps of arrays.
pal_set1

Colour palette for categorical variables.
leaflet_basemap_stack

Basemap stack in leaflet.
ggplot_sf_facet

Map of simple features in ggplot that is facetted.
leaflet_sf

Map of simple features in leaflet.
theme_hbar

Theme for horizontal bar ggplots.
ggplot_sf_col

Map of simple features in ggplot that is coloured.
pal_trend5

Colour palette for categorical variables.
theme_vbar

Theme for vertical bar ggplots.
leaflet_sf_col

Map of simple features in leaflet that is coloured.
leaflet_basemap_stack_nz

Basemap stack in leaflet for New Zealand.
ggplot_vbar_col_facet

Vertical bar ggplot that is coloured and facetted.
ggplot_vbar_facet

Vertical bar ggplot that is facetted.
run_template

Run shiny template with option to download.
theme_scatter

Theme for scatter ggplots.
theme_sf

Theme for ggplot maps of simple features.
sentence_colnames

Convert column names to sentence case
nz_region

New Zealand coastline with regions.
ggplot_vbar

Vertical bar ggplot.
pal_trend3

Colour palette for categorical variables.
ggplot_vbar_col

Vertical bar ggplot that is coloured.
theme_line

Theme for line ggplots.
signed_sqrt_trans

Signed square root ggplot scale transformation.
pal_ea19

Colour palette for categorical variables.
numeric_legend_labels

Numeric legend labels.
nz

New Zealand coastline.
theme_box

Theme for vertical box ggplots.
%>%

Pipe operator
run_example

Run shiny example with option to download.
ggplot_box_facet

Vertical box ggplot that is facetted.
ggplot_hbar

Horizontal bar ggplot.
example_sf_nz_river_wq

Example sf object of New Zealand river water quality trends.
a4_width_mm

A4 useable width.
a4_height_mm

A4 useable height.