Skip to content

Commit

Permalink
jsurvival WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalci committed Dec 11, 2023
1 parent ce9c3fb commit 97320ac
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 210 deletions.
80 changes: 42 additions & 38 deletions R/jjhistostats.b.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#' @title Histogram
#'
#' @importFrom R6 R6Class
#' @import jmvcore
#' @import ggplot2
Expand All @@ -15,7 +14,8 @@ jjhistostatsClass <- if (requireNamespace('jmvcore'))
.init = function() {
deplen <- length(self$options$dep)

self$results$plot$setSize(400, deplen * 300)
self$results$plot$setSize(deplen * 800,
600)

self$results$plot2$setSize(800, deplen * 300)

Expand Down Expand Up @@ -398,24 +398,26 @@ jjhistostatsClass <- if (requireNamespace('jmvcore'))
plot2 <- ggstatsplot::grouped_gghistostats(
data = mydata,
x = !!dep,
grouping.var = !!grvar,
binwidth = binwidth,
title.prefix = NULL,
output = "plot",
plotgrid.args = list(),
title.text = NULL,
title.args = list(size = 16, fontface = "bold"),
caption.text = NULL,
caption.args = list(size = 10),
sub.text = NULL,
sub.args = list(size = 12)

, type = typestatistics
, bar.measure = barmeasure
, centrality.parameter = centralityparameter
, results.subtitle = self$options$resultssubtitle
, normal.curve = self$options$normalcurve
, centrality.plotting = self$options$centralityline
grouping.var = !!grvar
# ,
# binwidth = binwidth,
# title.prefix = NULL,
# output = "plot",
# plotgrid.args = list(),
# title.text = NULL,
# title.args = list(size = 16,
# fontface = "bold"),
# caption.text = NULL,
# caption.args = list(size = 10),
# sub.text = NULL,
# sub.args = list(size = 12)
#
# , type = typestatistics
# , bar.measure = barmeasure
# , centrality.parameter = centralityparameter
# , results.subtitle = self$options$resultssubtitle
# , normal.curve = self$options$normalcurve
# , centrality.plotting = self$options$centralityline


)
Expand All @@ -437,24 +439,26 @@ jjhistostatsClass <- if (requireNamespace('jmvcore'))
messages = FALSE),
.f = ggstatsplot::grouped_gghistostats,
data = mydata,
grouping.var = !!grvar,
binwidth = binwidth,
title.prefix = NULL,
output = "plot",
plotgrid.args = list(),
title.text = NULL,
title.args = list(size = 16, fontface = "bold"),
caption.text = NULL,
caption.args = list(size = 10),
sub.text = NULL,
sub.args = list(size = 12)

, type = typestatistics
, bar.measure = barmeasure
, centrality.parameter = centralityparameter
, results.subtitle = self$options$resultssubtitle
, normal.curve = self$options$normalcurve
, centrality.plotting = self$options$centralityline
grouping.var = !!grvar
# ,
# binwidth = binwidth,
# title.prefix = NULL,
# output = "plot",
# plotgrid.args = list(),
# title.text = NULL,
# title.args = list(size = 16,
# fontface = "bold"),
# caption.text = NULL,
# caption.args = list(size = 10),
# sub.text = NULL,
# sub.args = list(size = 12)
#
# , type = typestatistics
# , bar.measure = barmeasure
# , centrality.parameter = centralityparameter
# , results.subtitle = self$options$resultssubtitle
# , normal.curve = self$options$normalcurve
# , centrality.plotting = self$options$centralityline


)
Expand Down
Loading

0 comments on commit 97320ac

Please sign in to comment.