plot_cells_count: Plot heatmaps of cell counts

Description Usage Arguments Value

View source: R/missing_values.R

Description

A wrapper around plot_cells_heatmap which is aware of regions and measures of interest. Because of that it a) adds 0 counts to region + measure combinations which lacked the relevant kind of value (e.g. extreme or NAs); b) visually delimits ROIs in the plot for visual convenience.

Usage

1
2
plot_cells_count(dat, by, cells.count, rois, mois, fill = count,
  plot.name = "Give a sensible name to the plot!")

Arguments

dat

data.frame containing information about by column

by

quosure indicating which column we are aggregating along. Usually it is the subject or the item column.

cells.count

data.frame with cells count data produced by count_cells. The function expects that the data.frame has column "cell", containing the names of data subsets for which counts were performed (e.g region+measure combination) and column "count", containing the counts of the relevant values in each cell.

rois, mois

vectors of identifiers for regions and measures, in which cells have to be counted

fill

unquoted name of the column with cell counts

plot.name

character

Value

heatmap plot of the cell counts (expanded compared to the plot returned by plot_cells_heatmap - with added zero counts and ROIs delimitation)


antonmalko/ettools documentation built on May 28, 2019, 3:35 p.m.