ggDensityJitter: wrapper for density plot with jittered x points using...

Description Usage Arguments Value Examples

View source: R/ggDensityJitter.R

Description

template wrapper ggridges::geom_density_ridges(., jittered_points = TRUE, position = position_points_jitter())

Usage

1
2
3
ggDensityJitter(.data, title = "", xlab = "", ylab = "",
  scaled = TRUE, .jitter.width = 0.05, .alpha = 0.3, .scale = 0.9,
  .verbose = TRUE, ...)

Arguments

.data

a data frame or a matrix

title

title text passed to labs(title = title, ...)

xlab

text passed to labs(xlab = xlab, ...)

ylab

text passed to labs(ylab = ylab, ...)

scaled

logical. If .data are scaled for each colmn (default = TRUE).

.jitter.width

numeric. Width for horizonal jittering. By default set to 0.05.

.alpha

numeric (0, 1). Alpha transparency scales for density plots.

.scale

numeric. Position scales for Y-axis.

.verbose

ligical. If TRUE, which colmn were converted (from factor to numeric) is printed.

...

other options passed to theme(., ...)

Value

a ggplots object

Examples

1
2
3
4
5
6
7
8
## Not run: 
ggDensityJitter(iris)

iris %>%
  select(-Species) %>%
  ggDensityJitter("feature distribution", .scale = 0.7, .jitter.width = 0.1, .verbose = FALSE)

## End(Not run)

katokohaku/ggumap documentation built on Nov. 4, 2019, 3:32 p.m.