We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f2158 commit 6e0682dCopy full SHA for 6e0682d
R/methods.R
@@ -1105,8 +1105,15 @@ plot.vsel <- function(
1105
x_color_txt <- "black"
1106
}
1107
pp <- pp +
1108
- geom_text(aes(y = -Inf, label = .data[["size_chr"]]), vjust = -0.5,
1109
- color = x_color_txt)
+ if (packageVersion("ggplot2") < "4.0.0") {
+ geom_text(aes(y = -Inf, label = .data[["size_chr"]]), vjust = -0.5,
1110
+ color = x_color_txt)
1111
+ } else {
1112
+ geom_text(aes(y = -Inf, label = .data[["size_chr"]],
1113
+ size = from_theme(fontsize * 0.7)),
1114
+ vjust = -0.5, color = x_color_txt)
1115
+
1116
+ }
1117
1118
# Miscellaneous stuff (axes, theming, faceting, etc.):
1119
if (!is.na(ranking_nterms_max) && ranking_colored &&
0 commit comments