Skip to content

Commit

Permalink
update WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Dec 24, 2023
1 parent 241ad91 commit 556a0cc
Show file tree
Hide file tree
Showing 24 changed files with 260 additions and 279 deletions.
4 changes: 1 addition & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: ClinicoPath
Title: Analysis for Clinicopathological Research
Version: 0.0.2.16
Version: 0.0.2.17
Date: 2023-12-24
Authors@R:
person(given = "Serdar",
Expand Down Expand Up @@ -70,8 +70,6 @@ Imports:
gtExtras,
labelled,
PMCMRplus
Remotes:
nbarrowman/vtree@ffa53d4ea5050fa9b26918f4bb30595e91a0f489
VignetteBuilder:
knitr
Encoding: UTF-8
Expand Down
20 changes: 12 additions & 8 deletions R/jjbarstats.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ jjbarstatsClass <- if (requireNamespace('jmvcore'))

# dep1 <- jmvcore::composeTerms(listOfComponents = dep)

dep1 <- jmvcore::composeTerm(components = dep)
# dep1 <- jmvcore::composeTerm(components = dep)

group <- jmvcore::composeTerm(components = group)
# group <- jmvcore::composeTerm(components = group)


# ggbarstats ----
Expand All @@ -137,8 +137,8 @@ jjbarstatsClass <- if (requireNamespace('jmvcore'))
plot <-
ggstatsplot::ggbarstats(
data = mydata,
x = !!dep1,
y = !!group,
x = !!rlang::sym(dep),
y = !!rlang::sym(group),

# paired = paired,

Expand Down Expand Up @@ -234,8 +234,10 @@ jjbarstatsClass <- if (requireNamespace('jmvcore'))
# y = NULL
)

plot <- ggstatsplot::combine_plots(plotlist = plotlist,
nrow = length(self$options$dep))
plot <- ggstatsplot::combine_plots(
plotlist = plotlist,
plotgrid.args = list(ncol = 1)
)



Expand Down Expand Up @@ -384,8 +386,10 @@ jjbarstatsClass <- if (requireNamespace('jmvcore'))
# ggstatsplot.layer = originaltheme
)

plot2 <- ggstatsplot::combine_plots(plotlist = plotlist,
ncol = 1)
plot2 <- ggstatsplot::combine_plots(
plotlist = plotlist,
plotgrid.args = list(ncol = 1)
)

}

Expand Down
20 changes: 12 additions & 8 deletions R/jjbetweenstats.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ jjbetweenstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(



dep <- jmvcore::composeTerm(components = dep)
# dep <- jmvcore::composeTerm(components = dep)

group <- jmvcore::composeTerm(components = group)
# group <- jmvcore::composeTerm(components = group)

# ggbetweenstats ----
# https://indrajeetpatil.github.io/ggstatsplot/reference/ggbetweenstats.html
Expand All @@ -161,8 +161,8 @@ jjbetweenstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
if (length(self$options$dep) == 1) {
plot <- ggstatsplot::ggbetweenstats(
data = mydata,
x = !!group,
y = !!dep
x = !!rlang::sym(group),
y = !!rlang::sym(dep)
, type = typestatistics
, ggtheme = ggtheme
, ggstatsplot.layer = originaltheme
Expand Down Expand Up @@ -249,8 +249,10 @@ jjbetweenstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(

)

plot <- ggstatsplot::combine_plots(plotlist = plotlist,
nrow = length(self$options$dep))
plot <- ggstatsplot::combine_plots(
plotlist = plotlist,
plotgrid.args = list(ncol = 1)
)



Expand Down Expand Up @@ -425,8 +427,10 @@ jjbetweenstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(

)

plot2 <- ggstatsplot::combine_plots(plotlist = plotlist,
ncol = 1)
plot2 <- ggstatsplot::combine_plots(
plotlist = plotlist,
plotgrid.args = list(ncol = 1)
)

}

Expand Down
8 changes: 4 additions & 4 deletions R/jjdotplotstats.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ jjdotplotstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
originaltheme <- self$options$originaltheme


dep <- jmvcore::composeTerm(components = dep)
# dep <- jmvcore::composeTerm(components = dep)

group <- jmvcore::composeTerm(components = group)
# group <- jmvcore::composeTerm(components = group)


# ggdotplotstats ----
Expand All @@ -129,8 +129,8 @@ jjdotplotstatsClass <- if (requireNamespace('jmvcore')) R6::R6Class(
plot <-
ggstatsplot::ggdotplotstats(
data = mydata,
x = !!dep,
y = !!group,
x = !!rlang::sym(dep),
y = !!rlang::sym(group),
xlab = NULL,
ylab = NULL,
title = NULL,
Expand Down
Loading

0 comments on commit 556a0cc

Please sign in to comment.