new renders

This commit is contained in:
Andreas Gammelgaard Damsbo 2026-05-30 19:59:31 +02:00
commit ab3df0eda6
No known key found for this signature in database
22 changed files with 97 additions and 38 deletions

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{align_axes}
\alias{align_axes}
\title{Aligns axes between plots}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{all_but}
\alias{all_but}
\title{Select all from vector but}

27
man/available_plots.Rd Normal file
View file

@ -0,0 +1,27 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-helpers.R
\name{available_plots}
\alias{available_plots}
\title{Implemented functions}
\usage{
available_plots()
}
\value{
list
}
\description{
Library of supported functions. The list name and "descr" element should be
unique for each element on list.
\itemize{
\item fun: the plotting function
\item fun.args: default parameters for the plotting function
\item descr: Plot description
\item note: Short note/description of the function for displaying in ui and docs
\item primary.type: Primary variable data type (see \link{data_type})
\item base: holds a list of parameters for plot input fields generation
Secondary and tertiary variable input fields are mandatory.
}
}
\examples{
available_plots() |> str()
}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{clean_common_axis}
\alias{clean_common_axis}
\title{Extract and clean axis ranges}

View file

@ -1,7 +1,7 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R, R/plot_bar.R, R/plot_box.R,
% R/plot_hbar.R, R/plot_likert.R, R/plot_ridge.R, R/plot_sankey.R,
% R/plot_scatter.R, R/plot_violin.R
% Please edit documentation in R/data_plots.R, R/plot-helpers.R, R/plot_bar.R,
% R/plot_box.R, R/plot_hbar.R, R/plot_likert.R, R/plot_ridge.R,
% R/plot_sankey.R, R/plot_scatter.R, R/plot_violin.R
\name{data-plots}
\alias{data-plots}
\alias{data_visuals_ui}
@ -22,7 +22,7 @@
\usage{
data_visuals_ui(id, tab_title = "Plots", ...)
data_visuals_server(id, data, palettes, ...)
data_visuals_server(id, data, palettes = color_choices(), ...)
create_plot(data, type, pri, sec, ter = NULL, color.palette = "viridis", ...)
@ -50,9 +50,9 @@ plot_box(data, pri, sec, ter = NULL, color.palette = "viridis", ...)
plot_box_single(data, pri, sec = NULL, seed = 2103, color.palette = "viridis")
plot_hbars(data, pri, sec, ter = NULL, color.palette = "viridis")
plot_hbars(data, pri, sec, ter = NULL, color.palette = "viridis", ...)
plot_likert(data, pri, sec = NULL, ter = NULL, color.palette = "viridis")
plot_likert(data, pri, sec = NULL, ter = NULL, color.palette = "viridis", ...)
plot_ridge(data, x, y, z = NULL, color.palette = "viridis", ...)
@ -69,12 +69,13 @@ plot_sankey(
default.color = "#2986cc",
box.color = "#1E4B66",
na.color = "grey80",
missing.level = "Missing"
missing.level = "Missing",
...
)
plot_scatter(data, pri, sec, ter = NULL, color.palette = "viridis")
plot_scatter(data, pri, sec, ter = NULL, color.palette = "viridis", ...)
plot_violin(data, pri, sec, ter = NULL, color.palette = "viridis")
plot_violin(data, pri, sec, ter = NULL, color.palette = "viridis", ...)
}
\arguments{
\item{id}{Module id. (Use 'ns("id")')}

27
man/get_input_params.Rd Normal file
View file

@ -0,0 +1,27 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-helpers.R
\name{get_input_params}
\alias{get_input_params}
\title{Get the function parameters based on the selected function description}
\usage{
get_input_params(data)
}
\arguments{
\item{data}{vector}
}
\value{
list
}
\description{
Get the function parameters based on the selected function description
}
\examples{
ls <- mtcars |>
default_parsing() |>
dplyr::pull(mpg) |>
possible_plots() |>
(\(.x){
.x[[1]]
})() |>
get_input_params()
}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{get_label}
\alias{get_label}
\title{Print label, and if missing print variable name for plots}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{get_plot_options}
\alias{get_plot_options}
\title{Get the function options based on the selected function description}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{line_break}
\alias{line_break}
\title{Line breaking at given number of characters for nicely plotting labels}

View file

@ -4,7 +4,7 @@
\alias{plot_euler_single}
\title{Easily plot single euler diagrams}
\usage{
plot_euler_single(data, color.palette = "viridis")
plot_euler_single(data, color.palette = "viridis", ...)
}
\value{
ggplot2 object

View file

@ -1,10 +1,10 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{possible_plots}
\alias{possible_plots}
\title{Get possible regression models}
\usage{
possible_plots(data)
possible_plots(data, source_list = supported_plots())
}
\arguments{
\item{data}{data}

View file

@ -0,0 +1,11 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-helpers.R
\name{selectPlotVariables}
\alias{selectPlotVariables}
\title{Wrapper for columnSelectInput}
\usage{
selectPlotVariables(data, exclude = NULL, allow_none = TRUE, var_types, ...)
}
\description{
Wrapper for columnSelectInput
}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{subset_types}
\alias{subset_types}
\title{Easily subset by data type function}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{supported_plots}
\alias{supported_plots}
\title{Implemented functions}

View file

@ -1,5 +1,5 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_plots.R
% Please edit documentation in R/plot-helpers.R
\name{wrap_plot_list}
\alias{wrap_plot_list}
\title{Wrapping}