-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font selection for ggscatter #149
Comments
Hi there, Wanted to second this bug! Also on ggpubr v0.2 . Example: # To simulate an overplotty labeled dataset
df <- data.frame(state = state.name, x = rnorm(50), y = rnorm(50))
# Changes text
ggplot(df, aes(x = x, y = y, label = state)) +
geom_text(family = "Comic Sans MS")
# Changes text
ggplot(df, aes(x = x, y = y, label = state)) +
ggrepel::geom_text_repel(family = "Comic Sans MS")
# Doesn't change text
ggpubr::ggscatter(df, x = "x", y = "y", label = "state", repel = TRUE, font.family = "Comic Sans MS") The ggscatter axis font changes, so font.family is recognized by the final theme call inside ggscatter, but I suspect that ggpubr::geom_exec() is not passing it through to the underlying geom call for some reason. |
I find that to display on the plot area of the scatter plot is complicated by reading the following document. “showtext: Using Fonts More Easily in R Graphs” https://cran.rstudio.com/web/packages/showtext/vignettes/introduction.html And I tried to use this package, "showtext" with ggpubr and factoextra, and FactoMineR v2.0. As I posted to factoextra issue, this is the solution to this issue. |
fixed now, thanks. The option font.family is now correctly handled in ggscatter() |
I tried to change the font family as followings using "font.family= "....".
But nothing has changed.
How can I do it.
I suppose it related to factextra font issue# 77 (#31, #50 )
ggpubr is version 0.2
regads.
kazuo
The text was updated successfully, but these errors were encountered: