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 and typing.

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.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

June 24th, 2021

Functions in simplevis (4.2.0)

gg_bar_facet

Vertical bar ggplot that is facetted.
gg_bar_col

Vertical bar ggplot that is coloured.
gg_boxplot_col_facet

Boxplot ggplot that is coloured
gg_boxplot

Boxplot ggplot.
gg_bar

Vertical bar ggplot.
gg_boxplot_col

Boxplot ggplot that is coloured
gg_bar_col_facet

Vertical bar ggplot that is coloured and facetted.
gg_boxplot_facet

Boxplot ggplot that is facetted.
example_sf_point

Example sf point object.
example_sf_polygon

Example sf polygon object.
gg_hbar_col_facet

Horizontal bar ggplot that is facetted.
gg_line_col

Line ggplot that is coloured.
gg_line

Line ggplot.
gg_line_col_facet

Line ggplot that is coloured and facetted.
gg_line_facet

Line ggplot that is facetted.
gg_point_col

Point ggplot that is coloured.
gg_point

Point ggplot.
gg_point_col_facet

Point ggplot that is coloured and facetted.
pal_na

NA palette.
plotly_col_legend

Change colour legend elements order.
pal_viridis_reorder

Viridis palette reordered.
run_template

Run shiny template with option to download.
gg_point_facet

Point ggplot that is facetted.
mutate_text

Add a quick tooltip text column to data.
leaflet_sf_col

Simple feature leaflet map that is coloured.
gg_hbar_facet

Horizontal bar ggplot that is facetted.
gg_sf_col_facet

Simple feature ggplot map that is coloured and facetted.
theme_bar

Theme for vertical bar ggplots.
gg_hbar_col

Horizontal bar ggplot that is coloured.
gg_sf

Simple feature ggplot map.
gg_hbar

Horizontal bar ggplot.
theme_line

Theme for line ggplots.
theme_hbar

Theme for horizontal bar ggplots.
%>%

Pipe operator
theme_point

Theme for point ggplots.
leaflet_basemap

Basemap stack in leaflet.
plotly_camera

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

Simple feature leaflet map.
sv_max_dp

Identify the maximum decimal places in a numeric vector.
theme_boxplot

Theme for box ggplots.
gg_sf_facet

Simple feature ggplot map that is facetted.
sv_font_size_body

Get default font_size_body
sv_numeric_bin_labels

Numeric legend labels.
theme_sf

Theme for ggplot maps of simple features.
theme_mobile_graph

Extra theme elements for ggplot2 graphs on mobile devices
gg_sf_col

Simple feature ggplot map that is coloured.
sv_font_size_title

Get default font_size_title
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
theme_mobile_map

Extra theme elements for ggplot2 maps on mobile devices
pal_d3_reorder

D3 palette reordered.
sv_numeric_breaks_v

Calculate the breaks for a y axis numeric vector.
sv_numeric_breaks_h

Calculate the breaks for a horizontal axis numeric vector.
nz

New Zealand coastline.