Learn R Programming

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

simplevis

Purpose

simplevis is a package of wrapper functions that aim to make ggplot2 visualisation easier and quicker.

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

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

June 4th, 2021

Functions in simplevis (4.0.0)

gg_sf_col_facet

Simple feature ggplot map 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.
example_sf_point

Example sf point object.
gg_hbar

Horizontal bar ggplot.
example_sf_polygon

Example sf polygon object.
leaflet_basemap

Basemap stack in leaflet.
gg_hbar_col

Horizontal bar ggplot that is coloured.
leaflet_sf

Simple feature leaflet map.
plotly_col_legend

Change colour legend elements order.
plotly_camera

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

Point ggplot.
gg_point_col

Point ggplot that is coloured.
theme_bar

Theme for vertical bar ggplots.
theme_boxplot

Theme for box ggplots.
theme_point

Theme for point ggplots.
sv_x_zero_adjust

Automatically adjust x_zero and x_zero_line if necessary
gg_sf_facet

Simple feature ggplot map that is facetted.
gg_boxplot

Boxplot ggplot.
sv_y_zero_adjust

Automatically adjust y_zero and y_zero_line if necessary
gg_line_facet

Line ggplot that is facetted.
gg_boxplot_col

Boxplot ggplot that is coloured
gg_line_col_facet

Line ggplot that is coloured and facetted.
theme_sf

Theme for ggplot maps of simple features.
sv_numeric_bin_labels

Numeric legend labels.
gg_sf_col

Simple feature ggplot map that is coloured.
gg_sf

Simple feature ggplot map.
run_template

Run shiny template with option to download.
sv_font_size_body

Get default font_size_body
sv_pal

Get default palette.
sv_numeric_breaks_v

Calculate the breaks for a y axis numeric vector.
gg_boxplot_col_facet

Boxplot ggplot that is coloured
gg_boxplot_facet

Boxplot ggplot that is facetted.
sv_numeric_breaks_h

Calculate the breaks for a horizontal axis numeric vector.
theme_mobile_graph

Extra theme elements for ggplot2 graphs on mobile devices
gg_hbar_col_facet

Horizontal bar ggplot that is facetted.
theme_mobile_map

Extra theme elements for ggplot2 maps on mobile devices
gg_hbar_facet

Horizontal bar ggplot that is facetted.
gg_point_facet

Point ggplot that is facetted.
%>%

Pipe operator
gg_point_col_facet

Point ggplot that is coloured and facetted.
nz

New Zealand coastline.
gg_bar

Vertical bar ggplot.
gg_bar_col

Vertical bar ggplot that is coloured.
gg_line_col

Line ggplot that is coloured.
sv_max_dp

Identify the maximum decimal places in a numeric vector.
mutate_text

Add a quick tooltip text column to data.
gg_line

Line ggplot.
leaflet_sf_col

Simple feature leaflet map that is coloured.
theme_hbar

Theme for horizontal bar ggplots.
theme_line

Theme for line ggplots.
sv_font_size_title

Get default font_size_title