graphics: Utilities for graphics

pch_plotR Documentation

Utilities for graphics

Description

pch_plot() shows pch variations.

gghist() is a simple alternative to hist()

col2hex() translates color name to hex.

Usage

pch_plot(alpha = 1, stroke = 1)

gghist(x, ..., binwidth = NULL, bins = NULL)

col2hex(color = grDevices::colors())

Arguments

alpha, stroke

passed to ggplot2::geom_point()

x

vector

...

passed to ggplot2::geom_histogram() or ggplot2::geom_bar()

binwidth

The width of the bins. Can be specified as a numeric value or as a function that calculates width from unscaled x. Here, "unscaled x" refers to the original x values in the data, before application of any scale transformation. When specifying a function along with a grouping structure, the function will be called once per group. The default is to use the number of bins in bins, covering the range of the data. You should always override this value, exploring multiple widths to find the best to illustrate the stories in your data.

The bin width of a date variable is the number of days in each time; the bin width of a time variable is the number of seconds.

bins

Number of bins. Overridden by binwidth. Defaults to 30.

color

a character vector


heavywatal/rwtl documentation built on April 29, 2024, 2:02 a.m.