You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
binompower<-function(LOS, n, prob1, alternative, prob2=NULL) {
225
-
Description<-"iscambinompower(LOS, n, prob1, alternative, prob2) \n This function determines the rejection region \n corresponding to the level of significance and the first probability \n and shows the second distribution shading its corresponding region. \n alternative can be \"less\", \"greater\", or \"two.sided\"."
#' @param response Vector of numeric values to plot.
4
+
#' @param explanatory Optional second categorical variable to group by.
5
+
#' @param main Optional title for the plot
6
+
#' @param xlab Optional x-axis label for the plot
7
+
#' @param ylab Optional y-axis label for the plot. Only displayed when `explanatory` is provided.
8
+
#'
9
+
#' @keywords internal
10
+
#' @name .plot_funcs_common_params
11
+
NULL
12
+
1
13
#' A box plot
2
14
#'
3
15
#' `boxplot` plots the given data in a box plot. If a second categorical variable
4
16
#' is given, the data is grouped by this variable.
5
17
#'
6
-
#' @param x Vector of numeric values to plot.
7
-
#' @param explanatory Optional second categorical variable to group by.
8
-
#' @param main Optional title for the plot
9
-
#' @param xlab Optional x-axis label for the plot
10
-
#' @param ylab Optional y-axis for the plot
18
+
#' @inheritParams .plot_funcs_common_params
11
19
#'
12
20
#' @return A box plot.
13
21
#'
14
22
#' @export
15
23
#'
16
-
#'
17
24
#' @examples
25
+
#' boxplot(
26
+
#' mtcars$mpg,
27
+
#' main = "mtcars Cylinders Dotplot",
28
+
#' xlab = "Number of Cylinders"
29
+
#' )
30
+
#' boxplot(
31
+
#' mtcars$mpg,
32
+
#' mtcars$am,
33
+
#' main = "Automatic Cars Have Better Mileage on Average",
34
+
#' xlab = "Mileage (miles per gallon)",
35
+
#' ylab = "Automatic (yes coded as 1)"
36
+
#' )
18
37
boxplot<-function(
19
-
x,
38
+
response,
20
39
explanatory=NULL,
21
40
main="",
22
41
xlab="",
23
42
ylab= substitute(explanatory)
24
43
) {
25
-
# TODO Masks graphics's boxplot?
26
-
Description<-"iscamboxplot (x, explanatory, names) \n This function displays horizontal boxplot(s) utilizing quartiles instead of hinges to match the summary statistics. \n Optional: A second, categorical variable can also be specified \n and values will be calculated separately for each group. \n Use the names input to specify the horizontal and vertical axis labels respectively."
#' main = "Automatic Cars Have Better Mileage on Average",
93
+
#' xlab = "Mileage (miles per gallon)",
94
+
#' ylab = "Automatic (yes coded as 1)"
95
+
#' )
78
96
dotplot<-function(
79
97
response,
80
98
explanatory=NULL,
81
99
main="",
82
100
xlab= substitute(response),
83
101
ylab= substitute(explanatory)
84
102
) {
85
-
Description<-"iscamdotplot(response, explanatory, names, mytitle) \n This function creates horizontal dotplots. \n If no explanatory variable is specified, just one plot. \n If an explanatory variable is specified, parallel dotplots will be created. \n Use the names input to specify the horizontal and vertical axis labels respectively and mytitle to specify main. Vertical axis cuts off at 1000."
0 commit comments