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
Copy file name to clipboardExpand all lines: R/crosstable.b.R
+9-20Lines changed: 9 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ crosstableClass <- if (requireNamespace('jmvcore')) R6::R6Class(
18
18
# ToDo Message ----
19
19
20
20
todo<-glue::glue("
21
+
<br>
22
+
21:02
21
23
<br>Welcome to ClinicoPath.<br>
22
24
This tool will help you form a Cross Table.<br>
23
25
The functions select hypothesis tests automatically. You may see different results with different tables. Please verify your data distribution and appropriateness of the test accordingly. You may find Statkat module useful.<br>
@@ -155,35 +157,22 @@ crosstableClass <- if (requireNamespace('jmvcore')) R6::R6Class(
@@ -16,14 +15,15 @@ jjbarstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
16
15
.run=function() {
17
16
18
17
# Initial Message ----
19
-
if ( is.null(self$options$dep) ) {
20
-
# TODO ----
18
+
if ( is.null(self$options$dep) || is.null(self$options$group)) {
19
+
20
+
# TODO ----
21
21
22
22
todo<-glue::glue(
23
23
"
24
24
<br>Welcome to ClinicoPath
25
25
<br><br>
26
-
This tool will help you generate Bar Plots.
26
+
This tool will help you generate Bar Charts.
27
27
<br><br>
28
28
This function uses ggplot2 and ggstatsplot packages. See documentations <a href = 'https://indrajeetpatil.github.io/ggstatsplot/reference/ggbarstats.html' target='_blank'>here</a> and <a href = 'https://indrajeetpatil.github.io/ggstatsplot/reference/grouped_ggbarstats.html' target='_blank'>here</a>.
29
29
<br>
@@ -46,26 +46,6 @@ jjbarstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
46
46
if (nrow(self$data) ==0)
47
47
stop('Data contains no (complete) rows')
48
48
49
-
50
-
51
-
52
-
53
-
54
-
mydata<-self$data
55
-
mydep<-self$options$dep
56
-
57
-
mydata<-jmvcore::select(mydata, c(mydep))
58
-
59
-
60
-
61
-
62
-
63
-
todo2<- head(mydata)
64
-
65
-
66
-
self$results$todo2$setContent(todo2)
67
-
68
-
69
49
}
70
50
}
71
51
@@ -76,7 +56,7 @@ jjbarstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
76
56
# the plot function ----
77
57
# Error messages ----
78
58
79
-
if ( is.null(self$options$dep) )
59
+
if ( is.null(self$options$dep) || is.null(self$options$group))
80
60
return()
81
61
82
62
if (nrow(self$data) ==0)
@@ -120,27 +100,14 @@ jjbarstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
0 commit comments