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 support effortless high quality ggplot2 and leaflet visualisations for reports or interactive shiny apps.

The intent is that these 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 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

2.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

March 12th, 2021

Functions in simplevis (2.4.0)

ggplot_hbar

Horizontal bar ggplot.
a4_width_mm

A4 useable width.
add_tip

Add a quick tooltip text column to data.
ggplot_box

Boxplot ggplot.
ggplot_box_facet

Boxplot ggplot that is facetted.
a4_height_mm

A4 useable height.
example_stars_2

Example stars object 2.
example_sf_polygon

Example sf polygon object.
example_stars

Example stars object.
example_sf_point

Example sf point object.
ggplot_line_col_facet

Line ggplot that is coloured and facetted.
ggplot_line_col

Line ggplot that is coloured.
ggplot_line_facet

Line ggplot that is facetted.
ggplot_point_col_facet

point ggplot that is coloured and facetted.
ggplot_point

point ggplot.
ggplot_point_col

point ggplot that is coloured.
ggplot_stars_facet

Map of an array in ggplot that is facetted.
ggplot_vbar

Vertical bar ggplot.
ggplot_point_facet

point ggplot that is facetted.
ggplot_sf

Map of simple features in ggplot.
ggplot_stars_col

Map of an array in ggplot that is coloured.
ggplot_hbar_facet

Horizontal bar ggplot that is facetted.
ggplot_line

Line ggplot.
ggplot_sf_col

Map of simple features in ggplot that is coloured.
ggplot_sf_col_facet

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

Vertical bar ggplot that is facetted.
ggplot_stars_col_facet

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

New Zealand coastline.
leaflet_basemap

Basemap stack in leaflet.
leaflet_stars_col

Map of an array in leaflet that is coloured.
numeric_legend_labels

Numeric legend labels.
sentence_spaced_colnames

Convert column names to sentence case.
leaflet_stars

Map of an array in leaflet.
leaflet_sf_col

Map of simple features in leaflet that is coloured.
run_template

Run shiny template with option to download.
theme_vbar

Theme for vertical bar ggplots.
ggplot_sf_facet

Map of simple features in ggplot that is facetted.
ggplot_stars

Map of an array in ggplot.
theme_line

Theme for line ggplots.
leaflet_basemap_nz

Basemap stack in leaflet for New Zealand.
nz_region

New Zealand clipped regional boundaries
plotly_legend_order

Order plotly legend elements.
theme_sf

Theme for ggplot maps of simple features.
pal_point_set1

Colour palette for categorical variables for points on a map etc.
leaflet_sf

Map of simple features in leaflet.
ggplot_hbar_col

Horizontal bar ggplot that is coloured.
ggplot_vbar_col

Vertical bar ggplot that is coloured.
ggplot_hbar_col_facet

Horizontal bar ggplot that is coloured and facetted.
theme_stars

Theme for ggplot maps of arrays.
theme_point

Theme for point ggplots.
pal_snz

Colour palette for a graph with a nominal categorical variable.
plotly_legend_rev

Reverse plotly legend elements.
%>%

Pipe operator
theme_box

Theme for box ggplots.
theme_hbar

Theme for horizontal bar ggplots.
plotly_camera

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

Vertical bar ggplot that is coloured and facetted.