-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdistr_plots.Rd
More file actions
51 lines (45 loc) · 1.46 KB
/
distr_plots.Rd
File metadata and controls
51 lines (45 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distr_plots.R
\name{distr_plots}
\alias{distr_plots}
\title{Plots distribution of original and simulated data}
\usage{
distr_plots(
Modgo_obj,
variables = colnames(Modgo_obj[["original_data"]]),
sim_dataset = 1,
wespalette = "Cavalcanti1",
text_size = 12
)
}
\arguments{
\item{Modgo_obj}{An object returned by \code{\link[modgo]{modgo}}.}
\item{variables}{A character vector indicating the columns in the data to
be used in plots.}
\item{sim_dataset}{Number indicating the simulated dataset in
\code{Modgo_obj} to be used in plots.}
\item{wespalette}{a name of the selected wesanderson color pallet}
\item{text_size}{a number for the size of the annotation text}
}
\value{
A ggplot object depicting distribution of different variables.
}
\description{
Produces a graphical display of the distribution of the variables
of the original dataset and a single simulated dataset for an object
returned by \code{\link[modgo]{modgo}}.
}
\details{
For continuous variables box-and-whisker plots are displayed, while
categorical variables bar charts are produced.
}
\examples{
data("Cleveland",package="modgo")
test_modgo <- modgo(data = Cleveland,
bin_variables = c("CAD","HighFastBloodSugar","Sex","ExInducedAngina"),
categ_variables =c("Chestpaintype"))
distr_plots(test_modgo)
}
\author{
Andreas Ziegler, Francisco M. Ojeda, George Koliopanos
}