Skip to content

Commit 13617a3

Browse files
run styler
1 parent f8baf90 commit 13617a3

32 files changed

+0
-153
lines changed

R/data_plot.R

-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ data_plot <- function(x, ...) {
8585
}
8686

8787

88-
8988
#' Complete figure with its attributes
9089
#'
9190
#' The `data_plot()` function usually stores information (such as title, axes
@@ -140,8 +139,6 @@ add_plot_attributes <- function(x) {
140139
}
141140

142141

143-
144-
145142
#' @keywords internal
146143
.retrieve_data <- function(x) {
147144
# retrieve model

R/geom_binomdensity.R

-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ geom_binomdensity <- function(data,
8282
}
8383

8484

85-
86-
8785
# Utilities ---------------------------------------------------------------
8886

8987
.geom_binomdensity_scale <- function(data, x, y, scale = "auto") {

R/geom_violindot.R

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ geom_violindot <- function(mapping = NULL,
9191
}
9292

9393

94-
9594
list(
9695
geom_violinhalf(
9796
mapping = mapping,

R/plot.check_distribution.R

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ plot.see_check_distribution <- function(x, size_point = 2, panel = TRUE, ...) {
116116
}
117117

118118

119-
120119
#' @export
121120
plot.see_check_distribution_numeric <- function(x,
122121
size_point = 2,

R/plot.check_predictions.R

-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ plot.see_performance_pp_check <- function(x,
196196
}
197197

198198

199-
200199
.plot_pp_check <- function(x,
201200
linewidth,
202201
size_point,

R/plot.compare_parameters.R

-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ plot.see_compare_parameters <- function(x,
188188
}
189189

190190

191-
192-
193191
#' @export
194192
data_plot.see_compare_parameters <- function(x, ...) {
195193
col_coefficient <- grep("^(Coefficient|Log-Odds|Log-Mean|Odds Ratio|Risk Ratio|IRR)\\.", colnames(x))

R/plot.compare_performance.R

-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ data_plot.compare_performance <- function(x, data = NULL, ...) {
5151
}
5252

5353

54-
55-
5654
# Plot --------------------------------------------------------------------
5755
#' Plot method for comparing model performances
5856
#'

R/plot.describe_distribution.R

-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ data_plot.parameters_distribution <- function(x, data = NULL, ...) {
2424
}
2525

2626

27-
28-
2927
# Plot --------------------------------------------------------------------
3028
#' Plot method for describing distributions of vectors
3129
#'
@@ -107,7 +105,6 @@ plot.see_parameters_distribution <- function(x,
107105
}
108106

109107

110-
111108
.plot_see_parameters_distribution <- function(x,
112109
alpha_dispersion,
113110
color_dispersion,

R/plot.equivalence_test.R

-3
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ plot.see_equivalence_test <- function(x,
201201
}
202202

203203

204-
205-
206204
# data frame method --------------------------------
207205

208206
#' @export
@@ -326,7 +324,6 @@ plot.see_equivalence_test_df <- function(x,
326324
}
327325

328326

329-
330327
# freq models method --------------------------------
331328

332329
#' @rdname plot.see_equivalence_test

R/plot.estimate_contrasts.R

-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ data_plot.estimate_contrasts <- function(x, data = NULL, ...) {
2626
}
2727

2828

29-
30-
3129
#' @keywords internal
3230
.data_contrasts_and_means <- function(contrasts, means, x_name, y_name) {
3331
polygons <- contrasts
@@ -57,7 +55,6 @@ data_plot.estimate_contrasts <- function(x, data = NULL, ...) {
5755
}
5856

5957

60-
6158
# Plot --------------------------------------------------------------------
6259

6360
#' Plot method for estimating contrasts

R/plot.estimate_density.R

-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,6 @@ plot.see_estimate_density <- function(x,
234234
}
235235

236236

237-
238-
239237
# Density df --------------------------------------------------------------------
240238

241239
#' @export

R/plot.hdi.R

-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ data_plot.bayestestR_hdi <- data_plot.hdi
1313
data_plot.bayestestR_eti <- data_plot.hdi
1414

1515

16-
1716
#' @keywords internal
1817
.data_plot_hdi <- function(x,
1918
data = NULL,
@@ -132,8 +131,6 @@ data_plot.bayestestR_eti <- data_plot.hdi
132131
}
133132

134133

135-
136-
137134
#' @keywords internal
138135
.compute_densities_hdi <- function(x, hdi, name = "Y") {
139136
hdi <- hdi[order(hdi$CI, decreasing = TRUE), ]
@@ -155,8 +152,6 @@ data_plot.bayestestR_eti <- data_plot.hdi
155152
}
156153

157154

158-
159-
160155
#' @keywords internal
161156
.classify_hdi <- function(x, breakpoints, labels, if_lower = TRUE) {
162157
limits <- list(
@@ -175,9 +170,6 @@ data_plot.bayestestR_eti <- data_plot.hdi
175170
}
176171

177172

178-
179-
180-
181173
# Plot --------------------------------------------------------------------
182174

183175
#' Plot method for uncertainty or credible intervals

R/plot.n_factors.R

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ data_plot.n_factors <- function(x, data = NULL, type = "bar", ...) {
8585
data_plot.n_clusters <- data_plot.n_factors
8686

8787

88-
8988
# Plot --------------------------------------------------------------------
9089

9190
#' Plot method for numbers of clusters to extract or factors to retain

R/plot.p_direction.R

-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ data_plot.p_direction <- function(x, data = NULL, show_intercept = FALSE, ...) {
119119
}
120120

121121

122-
123122
#' @keywords internal
124123
.compute_densities_pd <- function(x, name = "Y", null = 0) {
125124
out <- .as.data.frame_density(
@@ -139,7 +138,6 @@ data_plot.p_direction <- function(x, data = NULL, show_intercept = FALSE, ...) {
139138
}
140139

141140

142-
143141
# Plot --------------------------------------------------------------------
144142

145143
#' Plot method for probability of direction

R/plot.p_significance.R

-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ data_plot.p_significance <- function(x,
126126
}
127127

128128

129-
130129
#' @keywords internal
131130
.compute_densities_ps <- function(x, name = "Y", threshold = 0) {
132131
out <- .as.data.frame_density(stats::density(x))
@@ -164,7 +163,6 @@ data_plot.p_significance <- function(x,
164163
}
165164

166165

167-
168166
# Plot --------------------------------------------------------------------
169167

170168
#' Plot method for practical significance

R/plot.parameters_brms_meta.R

-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ data_plot.parameters_brms_meta <- function(x, data = NULL, normalize_height = TR
7171
}
7272

7373

74-
75-
7674
# Plot --------------------------------------------------------------------
7775

7876
#' Plot method for Model Parameters from Bayesian Meta-Analysis

R/plot.parameters_model.R

-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,6 @@ plot.see_parameters_model <- function(x,
753753
}
754754

755755

756-
757756
.meta_measure <- function(meta_measure) {
758757
switch(meta_measure,
759758
MD = "Raw Mean Difference",

R/plot.parameters_pca.R

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ data_plot.parameters_pca <- function(x, data = NULL, ...) {
5050
data_plot.parameters_efa <- data_plot.parameters_pca
5151

5252

53-
5453
# Plot --------------------------------------------------------------------
5554

5655
#' Plot method for principal component analysis

R/plot.parameters_sem.R

-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ data_plot.parameters_sem <- function(x,
5353
}
5454

5555

56-
5756
# Separate labels
5857
edges$Label_Regression <- ifelse(edges$Component == "Regression", edges$Label, "")
5958
edges$Label_Correlation <- ifelse(edges$Component == "Correlation", edges$Label, "")
@@ -80,8 +79,6 @@ data_plot.parameters_sem <- function(x,
8079
}
8180

8281

83-
84-
8582
# Plot --------------------------------------------------------------------
8683
#' @param threshold_coefficient Numeric, threshold at which value coefficients will be displayed.
8784
#' @param threshold_p Numeric, threshold at which value p-values will be displayed.

R/plot.point_estimates.R

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ data_plot.point_estimate <- function(x, data = NULL, ...) {
6969
data_plot.map_estimate <- data_plot.point_estimate
7070

7171

72-
7372
# Plot --------------------------------------------------------------------
7473

7574
#' Plot method for point estimates of posterior samples

R/plot.rope.R

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ data_plot.rope <- function(x, data = NULL, show_intercept = FALSE, ...) {
6262
}
6363

6464

65-
6665
# Plot --------------------------------------------------------------------
6766

6867
#' Plot method for Region of Practical Equivalence

R/scale_color_bluebrown.R

-14
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ scale_color_bluebrown <- function(palette = "contrast", discrete = TRUE, reverse
2727
}
2828

2929

30-
3130
# Aliases -----------------------------------------------------------------
3231

3332

@@ -76,13 +75,9 @@ scale_colour_bluebrown_c <- scale_color_bluebrown_c
7675
scale_colour_bluebrown_d <- scale_color_bluebrown_d
7776

7877

79-
80-
81-
8278
# Fill --------------------------------------------------------------------
8379

8480

85-
8681
#' @rdname scale_color_bluebrown
8782
#' @export
8883
scale_fill_bluebrown <- function(palette = "contrast",
@@ -133,9 +128,6 @@ scale_fill_bluebrown_c <- function(palette = "contrast",
133128
}
134129

135130

136-
137-
138-
139131
# Palette --------------------------------------------------------------------
140132

141133

@@ -175,19 +167,13 @@ bluebrown_colors <- function(...) {
175167
}
176168

177169

178-
179-
180170
bluebrown_palettes <- list(
181171
`full` = bluebrown_colors(),
182172
`contrast` = bluebrown_colors("lightblue", "blue", "darkblue", "grey", "darkbrown", "brown", "lightbrown"),
183173
`rainbow` = bluebrown_colors("darkblue", "blue", "lightblue", "grey", "lightbrown", "brown", "darkbrown")
184174
)
185175

186176

187-
188-
189-
190-
191177
#' Blue-brown design color palette
192178
#'
193179
#' The palette based on blue-brown colors.

R/scale_color_colorhex.R

-7
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,9 @@ scale_colour_colorhex_c <- scale_color_colorhex_c
108108
scale_colour_colorhex_d <- scale_color_colorhex_d
109109

110110

111-
112-
113-
114111
# Fill --------------------------------------------------------------------
115112

116113

117-
118114
#' @rdname scale_color_colorhex
119115
#' @export
120116
scale_fill_colorhex <- function(palette = 1014416,
@@ -165,9 +161,6 @@ scale_fill_colorhex_c <- function(palette = 1014416,
165161
}
166162

167163

168-
169-
170-
171164
# Palette --------------------------------------------------------------------
172165

173166
#' Color palettes from <https://www.color-hex.com/>

R/scale_color_flat.R

-16
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ scale_color_flat <- function(palette = "contrast",
4545
}
4646

4747

48-
4948
# Aliases -----------------------------------------------------------------
5049

5150

@@ -94,13 +93,9 @@ scale_colour_flat_c <- scale_color_flat_c
9493
scale_colour_flat_d <- scale_color_flat_d
9594

9695

97-
98-
99-
10096
# Fill --------------------------------------------------------------------
10197

10298

103-
10499
#' @rdname scale_color_flat
105100
#' @export
106101
scale_fill_flat <- function(palette = "contrast",
@@ -151,14 +146,9 @@ scale_fill_flat_c <- function(palette = "contrast",
151146
}
152147

153148

154-
155-
156-
157149
# Palette --------------------------------------------------------------------
158150

159151

160-
161-
162152
# The palette based on flat design colors: https://www.materialui.co/flatuicolors
163153
flat_colors_list <- c(
164154
`red` = "#e74c3c",
@@ -205,8 +195,6 @@ flat_colors <- function(...) {
205195
}
206196

207197

208-
209-
210198
flat_palettes <- list(
211199
`full` = flat_colors(),
212200
`ice` = flat_colors("purple", "deep purple", "blue", "light blue"),
@@ -238,10 +226,6 @@ flat_palettes <- list(
238226
)
239227

240228

241-
242-
243-
244-
245229
#' Flat UI color palette
246230
#'
247231
#' The palette based on [Flat UI](https://materialui.co/flatuicolors).

0 commit comments

Comments
 (0)