We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, the integration of ggplot2 with the units class is a great feature. However, the axis limits cannot be customized currently:
ggplot2
units
library(ggplot2) library(units) df <- data.frame(x = set_units(1:3,m), y = set_units(4:6,kg))
Calling xlim with a units object results in an error
xlim
ggplot(data = df, aes(x=x,y=y)) + geom_point() + xlim(set_units(c(0,4),m))
Error in UseMethod("limits") : no applicable method for 'limits' applied to an object of class "units"
Calling xlim with a numeric vector also results in a (different) error
ggplot(data = df, aes(x=x,y=y)) + geom_point() + xlim(c(0,4))
Error in Ops.units(x, range[1]) : both operands of the expression should be "units" objects
The text was updated successfully, but these errors were encountered:
123c23d
No branches or pull requests
Hi,
the integration of
ggplot2
with theunits
class is a great feature. However, the axis limits cannot be customized currently:Calling
xlim
with aunits
object results in an errorCalling
xlim
with a numeric vector also results in a (different) errorThe text was updated successfully, but these errors were encountered: