mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 17:42:10 +01:00
35 lines
654 B
R
35 lines
654 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/plot_hbar.R
|
|
\name{vertical_stacked_bars}
|
|
\alias{vertical_stacked_bars}
|
|
\title{Vertical stacked bar plot wrapper}
|
|
\usage{
|
|
vertical_stacked_bars(
|
|
data,
|
|
score = "full_score",
|
|
group = "pase_0_q",
|
|
strata = NULL,
|
|
t.size = 10,
|
|
l.color = "black",
|
|
l.size = 0.5,
|
|
draw.lines = TRUE,
|
|
label.str = "{n}\\n{round(100 * p,0)}\%"
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{data}{data.frame}
|
|
|
|
\item{score}{outcome variable}
|
|
|
|
\item{group}{grouping variable}
|
|
|
|
\item{strata}{stratifying variable}
|
|
|
|
\item{t.size}{text size}
|
|
}
|
|
\value{
|
|
ggplot2 object
|
|
}
|
|
\description{
|
|
Vertical stacked bar plot wrapper
|
|
}
|