Skip to content

Commit

Permalink
0.5.7 nejm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Oct 28, 2024
1 parent 4a6152b commit 2c45b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/jskm.R
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ jskm <- function(sfit,
p2 <- p1 + coord_cartesian(ylim = nejm.infigure.ylim) + theme(
axis.title.x = element_blank(), axis.title.y = element_blank(),
axis.text = element_text(size = 10 * nejm.infigure.ratiow),
) + guides(colour = "none", linetype = "none")
) + guides(colour = "none", linetype = "none") + scale_y_continuous(limits = nejm.infigure.ylim, breaks = waiver(), labels = scale_labels)
p <- p + patchwork::inset_element(p2, 1 - nejm.infigure.ratiow, 1 - nejm.infigure.ratioh, 1, 1, align_to = "panel")
}

Expand Down
2 changes: 1 addition & 1 deletion R/svyjskm.R
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ svyjskm <- function(sfit,
if (!is.null(theme) && theme == "nejm") {
p2 <- p1 + coord_cartesian(ylim = nejm.infigure.ylim) + theme(
axis.title.x = element_blank(), axis.title.y = element_blank(),
axis.text = element_text(size = 10 * nejm.infigure.ratiow)
axis.text = element_text(size = 10 * nejm.infigure.ratiow) + scale_y_continuous(limits = nejm.infigure.ylim, breaks = waiver(), labels = scale_labels)
) + guides(colour = "none", linetype = "none")
p <- p + patchwork::inset_element(p2, 1 - nejm.infigure.ratiow, 1 - nejm.infigure.ratioh, 1, 1, align_to = "panel")
}
Expand Down

0 comments on commit 2c45b93

Please sign in to comment.