cism_plot: cism plot

Description Usage Arguments Value

View source: R/cism_plot.R

Description

Generate simple visualizations of variables. Meant to show one of 3 different kinds of charts: 1. A bar chart (for counts of categorical variables) 2. A histogram (for distributions of numeric variables) 3. A x-y correlation chart (if two variables are supplied)

Usage

1
2
cism_plot(x, y = NULL, type = NULL, make_simple = TRUE, n_simple = 10,
  trend = FALSE)

Arguments

x

A variable to be plotted alone, or the x-axis of a two variable plot

y

An option second variable to be plotted on the y-axis

type

Either "numeric" or "factor". If NULL (the default), this function will try to guess the type of variable. Ignored if both x and y are supplied.

make_simple

Whether to simplify a categorical variable to fewer than n_simplify categories. Ignored unless y is NULL and x is categorical.

n_simple

The number of categories to simplify x to. Ignored unless y is NULL and x is categorical.

trend

Whether to overlay a trend line. Ignored unless y is not NULL and both x and y are numeric.

Value

A plot


joebrew/cism documentation built on May 19, 2019, 2:58 p.m.