geom_rbar_interactive: Creates an interactive radial barchart which shows a...

Description Usage Arguments Value See Also

View source: R/raw_code/geom_rbar_interactive.R View source: R/geom_rbar_interactive.R

Description

Creates an interactive radial barchart which shows a cluster's average feature values

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
geom_rbar_interactive(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  ...,
  cluster_idx = NULL,
  cluster_assignment = NULL,
  phase_present = FALSE,
  cluster_phase = NULL,
  cluster_name = NULL,
  cluster_abbrev = NULL,
  colour_clusters = NULL,
  scale_rng = c(-1, 1) * 1.5,
  data_dict = NULL,
  delta_threshold = 0.25,
  group_names = NULL,
  show_group_names = FALSE,
  unique_id = NULL,
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE
)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping.

data

The dataset as data frame / tibble. Should be scaled. See ?scale.

stat

The statistical transformation to use on the data, as a string; recommendation - identity as it keeps the data as it is.

position

Position adjustment, either as a string, or the result of a call to a position adjustment function, recommendation - identity so it doesn't adjust position.

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like color = "red" or size = 3. They may also be parameters to the paired geom/stat.

cluster_idx

A length-one integer vector. The Index of cluster of interest. e.g. 1L, 2L etc.

cluster_assignment

A integer vector with the cluster membership assignment. (optional)

phase_present

A length-one logical vector, the default FALSE.

cluster_phase

Character vector with the time point of the recording, e.g there are two unique time points, "T0" and "T1". (optional)

cluster_name

Name of the cluster. (optional)

cluster_abbrev

Prefix of cluster_idx. e.g. "PT1", "PT2"

colour_clusters

for color clusters

scale_rng

Min and max values to be shown.

data_dict

For internal use.

delta_threshold

For internal use.

group_names

Character vector with group names of features. Group names are displayed in the inner circle. (optional)

show_group_names

A length-one logical vector, the default 'FALSE, does not display group_names in inner circle.

unique_id

Numerical vector with unique identifiers for each observation. (optional)

na.rm

A length-one logical vector. Should missing values (including NaN) be removed? If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification, e.g. borders().

Value

the interactive radial barchart

See Also

geom_rbar


Ashish-Soni08/ggradialbar documentation built on April 15, 2021, 4:11 a.m.