Learn R Programming

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

simplevis

Overview

simplevis is a package of wrapper functions to make 'ggplot2' and 'leaflet' visualisation easier and prettier.

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

124

Version

2.6.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

April 9th, 2021

Functions in simplevis (2.6.0)

ggplot_boxplot_facet

Boxplot ggplot that is facetted.
a4_width_mm

A4 useable width.
example_sf_polygon

Example sf polygon object.
ggplot_boxplot

Boxplot ggplot.
colnames_to_snake_to_sentence

Convert column names to snake case and then to sentence case.
example_stars_2

Example stars object 2.
example_sf_point

Example sf point object.
example_stars

Example stars object.
a4_height_mm

A4 useable height.
ggplot_hbar

Horizontal bar ggplot.
ggplot_hbar_col

Horizontal bar ggplot that is coloured.
ggplot_point_col_facet

Point ggplot that is coloured and facetted.
ggplot_point_col

Point ggplot that is coloured.
ggplot_hbar_col_facet

Horizontal bar ggplot that is coloured and facetted.
ggplot_vbar_col_facet

Vertical bar ggplot that is coloured and facetted.
ggplot_vbar_col

Vertical bar ggplot that is coloured.
leaflet_sf

Map of simple features in leaflet.
ggplot_point_facet

Point ggplot that is facetted.
ggplot_sf

Map of simple features in ggplot.
leaflet_sf_col

Map of simple features in leaflet that is coloured.
ggplot_line

Line ggplot.
ggplot_hbar_facet

Horizontal bar ggplot that is facetted.
leaflet_basemap

Basemap stack in leaflet.
ggplot_vbar_facet

Vertical bar ggplot that is facetted.
ggplot_sf_col

Map of simple features in ggplot that is coloured.
ggplot_line_facet

Line ggplot that is facetted.
ggplot_point

Point ggplot.
ggplot_vbar

Vertical bar ggplot.
ggplot_sf_facet

Map of simple features in ggplot that is facetted.
ggplot_sf_col_facet

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

New Zealand coastline.
ggplot_line_col

Line ggplot that is coloured.
ggplot_line_col_facet

Line ggplot that is coloured and facetted.
%>%

Pipe operator
plotly_camera

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

Theme for point ggplots.
pal_default

Get default palette.
theme_sf

Theme for ggplot maps of simple features.
run_template

Run shiny template with option to download.
theme_boxplot

Theme for box ggplots.
plotly_legend_order

Order plotly legend elements.
theme_vbar

Theme for vertical bar ggplots.
plotly_legend_rev

Reverse plotly legend elements.
legend_labels_from_cuts

Numeric legend labels.
mutate_text

Add a quick tooltip text column to data.
theme_hbar

Theme for horizontal bar ggplots.
theme_line

Theme for line ggplots.