Skip to content

widthUnit/heightUnit parameters #271

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

Merged
merged 9 commits into from
Mar 10, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ object ErrorBar {
geomErrorBar(
position = positionDodgeV(height = 0.9),
color = "black",
height = 0.1
width = 0.1
) {
xmin = "min"; xmax = "max"; group = "supp"
}
Expand All @@ -128,7 +128,7 @@ object ErrorBar {
xmin = "min"
xmax = "max"
color = "supp"
} + geomErrorBar(position = positionDodgeV(height = 0.3), height = 0.2) + ggtitle("Horizontal errorbar")
} + geomErrorBar(position = positionDodgeV(height = 0.3), width = 0.2) + ggtitle("Horizontal errorbar")
p.show()
}

Expand All @@ -138,7 +138,7 @@ object ErrorBar {
xmin = "min"
xmax = "max"
color = "supp"
} + geomErrorBar(position = positionDodgeV(height = 0.3), height = 0.2) +
} + geomErrorBar(position = positionDodgeV(height = 0.3), width = 0.2) +
coordFlip() +
ggtitle("Horizontal errorbar + coordFlip()")
p.show()
Expand Down
Loading