mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
introduced regression coef plotting
This commit is contained in:
parent
48d6b895aa
commit
f728bb1e8e
6 changed files with 917 additions and 331 deletions
39
R/theme.R
39
R/theme.R
|
|
@ -34,3 +34,42 @@ custom_theme <- function(...,
|
|||
code_font = code_font
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
#' GGplot default theme for plotting in Shiny
|
||||
#'
|
||||
#' @param data ggplot object
|
||||
#'
|
||||
#' @returns ggplot object
|
||||
#' @export
|
||||
#'
|
||||
gg_theme_shiny <- function(){
|
||||
ggplot2::theme(
|
||||
axis.title = ggplot2::element_text(size = 18),
|
||||
axis.text = ggplot2::element_text(size = 14),
|
||||
strip.text = ggplot2::element_text(size = 14),
|
||||
legend.title = ggplot2::element_text(size = 18),
|
||||
legend.text = ggplot2::element_text(size = 14),
|
||||
plot.title = ggplot2::element_text(size = 24),
|
||||
plot.subtitle = ggplot2::element_text(size = 18),
|
||||
legend.position = "none"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
#' GGplot default theme for plotting export objects
|
||||
#'
|
||||
#' @param data ggplot object
|
||||
#'
|
||||
#' @returns ggplot object
|
||||
#' @export
|
||||
#'
|
||||
gg_theme_export <- function(){
|
||||
ggplot2::theme(
|
||||
axis.title = ggplot2::element_text(size = 18),
|
||||
axis.text.x = ggplot2::element_text(size = 14),
|
||||
legend.title = ggplot2::element_text(size = 18),
|
||||
legend.text = ggplot2::element_text(size = 14),
|
||||
plot.title = ggplot2::element_text(size = 24)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue