Skip to content
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

Error in upgradeUnit.default(x) : Not a unit object #88

Open
choiceMaster-ai opened this issue Jun 2, 2022 · 0 comments
Open

Error in upgradeUnit.default(x) : Not a unit object #88

choiceMaster-ai opened this issue Jun 2, 2022 · 0 comments

Comments

@choiceMaster-ai
Copy link

Hi. I have suddenly received the error: Error in upgradeUnit.default(x) : Not a unit object executing a ggplot when I use:
...
theme(
plot.title.position = "plot",
plot.title = ggtext::element_textbox_simple(
size = 12,
hjust = 0.5,
lineheight = 1,
padding = margin(5.5, 5.5, 5.5, 5.5),
margin = margin(0, 0, 5.5, 0),
fill = "cornsilk"
)) +
...

ggplot2 version is 3.3.6
ggtext version is 0.1.1
gridtext version is 0.1.4

If I comment out the above code in the plot specification then the plot works?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant