@@ -29,7 +29,7 @@ theme_darkgray <- function(){
29
29
30
30
theme(panel.background = element_rect(fill = " #ffffff" ,color = " #d3d3d3" ),
31
31
plot.background = element_rect(fill = " #ffffff" , color = " #343e48" ),
32
- panel.grid.major = element_line(color = " #38404f" , size = .1 ),
32
+ panel.grid.major = element_line(color = " #38404f" , linewidth = .1 ),
33
33
panel.grid.minor = element_blank(),
34
34
axis.text = element_text(colour = " #38404f" ),
35
35
axis.title = element_text(color = " #38404f" ),
@@ -901,7 +901,7 @@ server <- function(input,output,session){
901
901
summarize(n = n()) %> %
902
902
ggplot(aes(x = pop ,y = n )) +
903
903
geom_bar(stat = " identity" , fill = " #38404f" ) +
904
- geom_vline(xintercept = mean(vals $ cltpop ), color = " #faa405" , size = 1.25 ) +
904
+ geom_vline(xintercept = mean(vals $ cltpop ), color = " #faa405" , linewidth = 1.25 ) +
905
905
scale_x_continuous(breaks = seq(10 ,100 ,10 ),
906
906
limits = c(5 ,105 )) +
907
907
labs(x = " ''How happy are you?''" ,
@@ -953,7 +953,7 @@ server <- function(input,output,session){
953
953
geom_bar(stat = " count" ,
954
954
width = 1 , fill = " #38404f" ) +
955
955
geom_vline(xintercept = mean(sims $ means ),
956
- color = " #faa405" , size = 1.25 , linetype = " dashed" ) +
956
+ color = " #faa405" , linewidth = 1.25 , linetype = " dashed" ) +
957
957
ylab(" Number of samples" ) +
958
958
xlab(" Sample mean(s)" ) +
959
959
labs(title = " Our measurement(s) of the population mean: dark bar(s)" ,
@@ -1013,9 +1013,9 @@ server <- function(input,output,session){
1013
1013
vals $ conf.int %> %
1014
1014
mutate(round = seq(1 : n.draw )) %> %
1015
1015
ggplot(aes(y = round , xmin = V1 ,xmax = V2 )) +
1016
- geom_linerange(color = " #38404f" , size = 1 ) +
1016
+ geom_linerange(color = " #38404f" , linewidth = 1 ) +
1017
1017
geom_vline(xintercept = mu , color = " #faa405" ,
1018
- size = 1.5 ) +
1018
+ linewidth = 1.5 ) +
1019
1019
scale_y_continuous(breaks = integer_breaks()) +
1020
1020
labs(x = " ''How happy are you?''" , y = " Study No." ,
1021
1021
caption = " The orange line indicates the TRUE population mean." ,
@@ -1050,7 +1050,7 @@ server <- function(input,output,session){
1050
1050
geom_area(stat = " function" , fun = dnorm , args = list (mean = x_bar , sd = x_sd ),
1051
1051
fill = " #faa405" , alpha = .5 ,
1052
1052
xlim = c(qnorm(1 - (alpha / 2 ),mean = x_bar , sd = x_sd ),100 )) +
1053
- geom_vline(xintercept = x_bar , linetype = " dotted" , color = " grey45" , size = 1.25 ) +
1053
+ geom_vline(xintercept = x_bar , linetype = " dotted" , color = " grey45" , linewidth = 1.25 ) +
1054
1054
geom_vline(xintercept = 55 , linetype = " solid" , color = " purple" ) +
1055
1055
scale_x_continuous(limits = c(10 ,100 ),
1056
1056
breaks = seq(10 ,100 ,10 )) +
@@ -1072,7 +1072,7 @@ server <- function(input,output,session){
1072
1072
geom_area(stat = " function" , fun = dnorm , args = list (mean = x_bar , sd = x_sd ),
1073
1073
fill = " #faa405" , alpha = .5 ,
1074
1074
xlim = c(qnorm(1 - (alpha / 2 ),mean = x_bar , sd = x_sd ),100 )) +
1075
- geom_vline(xintercept = x_bar , linetype = " dotted" , color = " grey45" , size = 1.25 ) +
1075
+ geom_vline(xintercept = x_bar , linetype = " dotted" , color = " grey45" , linewidth = 1.25 ) +
1076
1076
geom_vline(xintercept = 55 , linetype = " solid" , color = " purple" ) +
1077
1077
geom_errorbarh(aes(xmin = 55 - qnorm(alpha / 2 )* 5 , xmax = 55 + qnorm(alpha / 2 )* 5 , y = 0.015 ),
1078
1078
color = " purple" , linetype = " dashed" ,height = 0.001 ) +
@@ -1107,7 +1107,7 @@ server <- function(input,output,session){
1107
1107
# annotate("text", x=0, y=stats::dnorm(stats::qnorm(as.numeric(input$dist_signselect)/2))+.015,label = paste0(100*(1-as.numeric(input$dist_signselect)),"% of data"),
1108
1108
# color="grey15", fontface = "bold") +
1109
1109
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1110
- size = 1.5 ) +
1110
+ linewidth = 1.5 ) +
1111
1111
labs(x = " " , y = " Density" ,
1112
1112
title = paste0(" Normal distribution critical values for a " ,as.numeric(input $ dist_signselect )," significance level (two-sided): " ,
1113
1113
round(stats :: qnorm(as.numeric(input $ dist_signselect )/ 2 ), digits = 3 )," & " ,
@@ -1122,7 +1122,7 @@ server <- function(input,output,session){
1122
1122
geom_area(stat = " function" , fun = stats :: dnorm , fill = " #faa405" ,
1123
1123
xlim = c(stats :: qnorm(1 - (as.numeric(input $ dist_signselect ))),4 ), color = " #38404f" ) +
1124
1124
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1125
- size = 1.5 ) +
1125
+ linewidth = 1.5 ) +
1126
1126
# annotate("segment", x = -3.99, xend = stats::qnorm(1-as.numeric(input$dist_signselect)),
1127
1127
# y = stats::dnorm(stats::qnorm(as.numeric(input$dist_signselect)))/2, yend = stats::dnorm(-stats::qnorm(as.numeric(input$dist_signselect)))/2, arrow = arrow(ends='both'),
1128
1128
# size = 1.5, color = "grey15") +
@@ -1142,7 +1142,7 @@ server <- function(input,output,session){
1142
1142
geom_area(stat = " function" , fun = stats :: dnorm , fill = " #38404f" ,alpha = .5 ,
1143
1143
xlim = c(stats :: qnorm((as.numeric(input $ dist_signselect ))),4 ), color = " #38404f" ) +
1144
1144
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1145
- size = 1.5 ) +
1145
+ linewidth = 1.5 ) +
1146
1146
# annotate("segment", x = 3.99, xend = stats::qnorm(as.numeric(input$dist_signselect)),
1147
1147
# y = stats::dnorm(stats::qnorm(as.numeric(input$dist_signselect)))/2, yend = stats::dnorm(-stats::qnorm(as.numeric(input$dist_signselect)))/2, arrow = arrow(ends='both'),
1148
1148
# size = 1.5, color = "grey15") +
@@ -1179,7 +1179,7 @@ server <- function(input,output,session){
1179
1179
# annotate("text", x=0, y=stats::dt(stats::qt(as.numeric(input$dist_signselect)/2, df=as.numeric(input$dist_dfselect)), df=as.numeric(input$dist_dfselect))+0.015,
1180
1180
# label = paste0(100*(1-as.numeric(input$dist_signselect)),"% of data"), color="grey15", fontface = "bold") +
1181
1181
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1182
- size = 1.5 ) +
1182
+ linewidth = 1.5 ) +
1183
1183
labs(x = " " , y = " Density" ,
1184
1184
title = paste0(" t-distribution critical values for a " ,as.numeric(input $ dist_signselect )," significance level (two-sided; df = " ,as.numeric(input $ dist_dfselect )," ): " ,
1185
1185
round(stats :: qt(as.numeric(input $ dist_signselect )/ 2 , df = as.numeric(input $ dist_dfselect )), digits = 3 )," & " ,
@@ -1204,7 +1204,7 @@ server <- function(input,output,session){
1204
1204
# y=stats::dt(stats::qt(as.numeric(input$dist_signselect), df=as.numeric(input$dist_dfselect)), df=as.numeric(input$dist_dfselect))+0.015,
1205
1205
# label = paste0(100*(1-as.numeric(input$dist_signselect)),"% of data"), color="grey15", fontface = "bold") +
1206
1206
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1207
- size = 1.5 ) +
1207
+ linewidth = 1.5 ) +
1208
1208
labs(x = " " , y = " Density" ,
1209
1209
title = paste0(" t-distribution critical value for a " ,as.numeric(input $ dist_signselect )," significance level (larger than; df = " ,as.numeric(input $ dist_dfselect )," ): " ,
1210
1210
round(stats :: qt(1 - as.numeric(input $ dist_signselect ), df = as.numeric(input $ dist_dfselect )), digits = 3 ))) +
@@ -1228,7 +1228,7 @@ server <- function(input,output,session){
1228
1228
# y=stats::dt(stats::qt(as.numeric(input$dist_signselect), df=as.numeric(input$dist_dfselect)), df=as.numeric(input$dist_dfselect))+0.015,
1229
1229
# label = paste0(100*(1-as.numeric(input$dist_signselect)),"% of data"), color="grey15", fontface = "bold") +
1230
1230
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1231
- size = 1.5 ) +
1231
+ linewidth = 1.5 ) +
1232
1232
labs(x = " " , y = " Density" ,
1233
1233
title = paste0(" t-distribution critical value for a " ,as.numeric(input $ dist_signselect )," significance level (smaller than; df = " ,as.numeric(input $ dist_dfselect )," ): " ,
1234
1234
round(stats :: qt(as.numeric(input $ dist_signselect ), df = as.numeric(input $ dist_dfselect )), digits = 3 ))) +
@@ -1249,7 +1249,7 @@ server <- function(input,output,session){
1249
1249
stats :: qchisq(1 - as.numeric(input $ dist_signselect ), df = as.numeric(input $ dist_dfselect ))+ .5 * stats :: qchisq(1 - as.numeric(input $ dist_signselect ), df = as.numeric(input $ dist_dfselect ))),
1250
1250
args = list (df = as.numeric(input $ dist_dfselect ))) +
1251
1251
geom_vline(xintercept = as.numeric(input $ dist_valselect ), color = " #38404f" , linetype = " dashed" ,
1252
- size = 1.5 ) +
1252
+ linewidth = 1.5 ) +
1253
1253
# annotate("segment", arrow = arrow(ends = "both"), size = 1.5, color = "grey15",
1254
1254
# x = 0, xend = stats::qchisq(1-as.numeric(input$dist_signselect), df=as.numeric(input$dist_dfselect)),
1255
1255
# y = stats::dchisq(stats::qchisq(1-as.numeric(input$dist_signselect), df=as.numeric(input$dist_dfselect)), df = as.numeric(input$dist_dfselect)),
0 commit comments