Learn R Programming

metasnf (version 2.1.2)

bar_plot: Bar plot separating a feature by cluster

Description

Bar plot separating a feature by cluster

Usage

bar_plot(df, feature)

Value

A bar plot (class "gg", "ggplot") showing the distribution of a feature across clusters.

Arguments

df

A data.frame containing cluster column and the feature to plot.

feature

The feature to plot.