Added text sizes as params

This commit is contained in:
gnoblet 2022-07-10 19:00:39 -04:00
parent d349e6a6d3
commit bdee722ce1
7 changed files with 65 additions and 11 deletions

View file

@ -16,10 +16,13 @@ hbar(
y_title = "",
group_title = NULL,
font_family = "Leelawadee",
font_size = 12,
position = "dodge",
reverse = FALSE,
title = "",
subtitle = "",
title_font_size = 16,
subtitle_font_size = 14,
...
)
}
@ -36,7 +39,7 @@ hbar(
\item{pal}{The color palette from the initiative}
\item{width}{Width.}
\item{width}{Width}
\item{x_title}{The x scale title. Default to empty string}
@ -46,6 +49,8 @@ hbar(
\item{font_family}{The font family. Default to "Leelawadee"}
\item{font_size}{Body font size; default to 12}
\item{position}{Should the chart be stacked? Default to dodge}
\item{reverse}{Boolean indicating whether the color palette should be reversed}
@ -54,6 +59,10 @@ hbar(
\item{subtitle}{Plot subtitle. Default to empty string}
\item{title_font_size}{Default to 16}
\item{subtitle_font_size}{Default to 14}
\item{...}{Other arguments to be passed to "ggblanket::gg_col"}
}
\value{

View file

@ -16,10 +16,13 @@ hbar_percent(
y_title = "",
group_title = NULL,
font_family = "Leelawadee",
font_size = 12,
position = "dodge",
reverse = FALSE,
title = "",
subtitle = "",
title_font_size = 16,
subtitle_font_size = 14,
...
)
}
@ -36,7 +39,7 @@ hbar_percent(
\item{pal}{The color palette from the initiative}
\item{width}{Width.}
\item{width}{Width}
\item{x_title}{The x scale title. Default to empty string}
@ -46,6 +49,8 @@ hbar_percent(
\item{font_family}{The font family. Default to "Leelawadee"}
\item{font_size}{Body font size; default to 12}
\item{position}{Should the chart be stacked? Default to dodge}
\item{reverse}{Boolean indicating whether the color palette should be reversed}
@ -54,6 +59,10 @@ hbar_percent(
\item{subtitle}{Plot subtitle. Default to empty string}
\item{title_font_size}{Default to 16}
\item{subtitle_font_size}{Default to 14}
\item{...}{Other arguments to be passed to "ggblanket::gg_col"}
}
\value{