@@ -269,8 +269,11 @@ print.maraca <- function(x, ...) {
269
269
# ' The accepted values are the same that ggplot2::scale_x_continuous
270
270
# ' @param density_plot_type which type of plot to display in the continuous
271
271
# ' part of the plot. Options are "default", "violin", "box", "scatter".
272
- # ' @param vline_type what the vertical lines in the continuous part of the plot
273
- # ' should highlight. Options are "median", "mean", "none".
272
+ # ' @param vline_type what the vertical dashed line should represent. Accepts
273
+ # ' "median" (only for continuous last endpoint), "mean", "none" and
274
+ # ' NULL (default). By default (vline_type = NULL), vline_type will be
275
+ # ' set to "median" for a continuous last endpoint and to "mean" for
276
+ # ' a binary last endpoint.
274
277
# ' @param theme Choose theme to style the plot. The default theme is "maraca".
275
278
# ' Options are "maraca", "maraca_old", "color1", "color2" and none".
276
279
# ' For more details, check the vignette called
@@ -709,7 +712,10 @@ validate_maraca_plot <- function(x, ...) {
709
712
# ' @param density_plot_type The type of plot to use to represent the density.
710
713
# ' Accepts "default", "violin", "box" and "scatter".
711
714
# ' @param vline_type what the vertical dashed line should represent. Accepts
712
- # ' "median", "mean", "none".
715
+ # ' "median" (only for continuous last endpoint), "mean", "none" and
716
+ # ' NULL (default). By default (vline_type = NULL), vline_type will be
717
+ # ' set to "median" for a continuous last endpoint and to "mean" for
718
+ # ' a binary last endpoint.
713
719
# ' @param theme Choose theme to style the plot. The default theme is "maraca".
714
720
# ' Options are "maraca", "maraca_old", "color1", "color2" and none".
715
721
# ' For more details, check the vignette called
@@ -733,7 +739,7 @@ validate_maraca_plot <- function(x, ...) {
733
739
plot.maraca <- function (
734
740
x , continuous_grid_spacing_x = 10 , trans = " identity" ,
735
741
density_plot_type = " default" ,
736
- vline_type = " median " ,
742
+ vline_type = NULL ,
737
743
theme = " maraca" ,
738
744
... ) {
739
745
plot_maraca(x , continuous_grid_spacing_x ,
@@ -760,7 +766,10 @@ plot.maraca <- function(
760
766
# ' @param density_plot_type The type of plot to use to represent the density.
761
767
# ' Accepts "default", "violin", "box" and "scatter".
762
768
# ' @param vline_type what the vertical dashed line should represent. Accepts
763
- # ' "median", "mean", "none".
769
+ # ' "median" (only for continuous last endpoint), "mean", "none" and
770
+ # ' NULL (default). By default (vline_type = NULL), vline_type will be
771
+ # ' set to "median" for a continuous last endpoint and to "mean" for
772
+ # ' a binary last endpoint.
764
773
# ' @param fixed_followup_days Not needed if HCE object contains information
765
774
# ' on fixed follow-up days in the study
766
775
# ' (column PADY or TTEfixed,
@@ -803,7 +812,7 @@ plot.hce <- function(x, last_outcome = "C",
803
812
continuous_grid_spacing_x = 10 ,
804
813
trans = " identity" ,
805
814
density_plot_type = " default" ,
806
- vline_type = " median " ,
815
+ vline_type = NULL ,
807
816
fixed_followup_days = NULL ,
808
817
compute_win_odds = FALSE ,
809
818
step_types = " tte" ,
0 commit comments