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 and leaflet wrapper functions that aims to make visualisation easier with less brainpower 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

4.5.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

August 6th, 2021

Functions in simplevis (4.5.0)

gg_boxplot_col_facet

Boxplot ggplot that is coloured
gg_boxplot

Boxplot ggplot.
gg_bar

Vertical bar ggplot.
example_sf_point

Example sf point object.
gg_boxplot_col

Boxplot ggplot that is coloured
gg_bar_facet

Vertical bar ggplot that is facetted.
gg_bar_col

Vertical bar ggplot that is coloured.
bin_cuts_to_interval_labels

Convert bin cuts to interval legend labels.
gg_bar_col_facet

Vertical bar ggplot that is coloured and facetted.
example_sf_polygon

Example sf polygon object.
gg_density_facet

Smoothed density ggplot that is facetted.
gg_hbar_col_facet

Horizontal bar ggplot that is coloured and facetted.
gg_hbar_col

Horizontal bar ggplot that is coloured.
gg_boxplot_facet

Boxplot ggplot that is facetted.
gg_density

Smoothed density ggplot.
gg_density_col_facet

Smoothed density ggplot that is coloured and facetted.
gg_density_col

Smoothed density ggplot that is coloured.
gg_hbar_facet

Horizontal bar ggplot that is facetted.
gg_line

Line ggplot.
gg_line_col_facet

Line ggplot that is coloured and facetted.
gg_point

Point ggplot.
gg_line_col

Line ggplot that is coloured.
gg_line_facet

Line ggplot that is facetted.
leaflet_sf

Simple feature leaflet map.
leaflet_sf_col

Simple feature leaflet map that is coloured.
gg_sf_col

Simple feature ggplot map that is coloured.
gg_sf_col_facet

Simple feature ggplot map that is coloured and facetted.
mutate_text

Add a quick tooltip text column to data.
nz

New Zealand coastline.
gg_point_facet

Point ggplot that is facetted.
plotly_camera

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

Get default font_size_body
sv_density_max_facet

Calculate the max density in a gg_density_facet() plot.
pal_na

NA palette.
gg_sf

Simple feature ggplot map.
pal_d3_reorder

D3 palette reordered.
pal_viridis_reorder

Viridis palette reordered.
sv_density_max_col

Calculate the max density in a gg_density_col(..., position == "identity") plot.
theme_xy_gridlines

Theme for graphs with x and y gridlines.
sv_density_max_col_facet

Calculate the max density in a gg_density_col_facet(..., position == "identity") plot.
sv_max_dp

Identify the maximum decimal places in a numeric vector.
sv_numeric_breaks_h

Calculate the breaks for a horizontal axis numeric vector.
gg_point_col

Point ggplot that is coloured.
sv_y_zero_adjust

Automatically adjust y_zero and y_zero_line if necessary
theme_map

Theme for maps.
%>%

Pipe operator
gg_tile_col_facet

Tile ggplot that is coloured and facetted.
gg_hbar

Horizontal bar ggplot.
plotly_col_legend

Change colour legend elements order.
theme_mobile_extra_map

Extra theme elements for ggplot2 maps on mobile devices
theme_mobile_extra

Extra theme elements for ggplot2 graphs on mobile devices
gg_point_col_facet

Point ggplot that is coloured and facetted.
gg_tile_col

Tile ggplot that is coloured.
gg_sf_facet

Simple feature ggplot map that is facetted.
sv_interval_breaks_to_interval_labels

Convert interval labels to a simpler format.
run_template

Run shiny template with option to download.
leaflet_basemap

Basemap stack in leaflet.
sv_font_size_title

Get default font_size_title
sv_density_max

Calculate the max density in a gg_density() plot.
sv_numeric_breaks_v

Calculate the breaks for a y axis numeric vector.
sv_x_zero_adjust

Automatically adjust x_zero and x_zero_line if necessary
theme_y_gridlines

Theme for graphs with horizontal y gridlines.
theme_x_gridlines

Theme for graphs with vertical x gridlines.
theme_no_gridlines

Theme for graphs with no gridlines.