Closed aelmokadem closed 10 months ago
I'm just cleaning up the last bits of syntax still from the change I made away from macros!
ggplot(data=df, @es(x=x,y=y)) + geom_point() + facet_wrap(facets = :z)
will do what you want, but I still need to update facet_wrap to take strings instead of Julia-style symbols
or - as well as Julia-style symbols, I guess
Thank you @rdboyes for the fast reply. This line doesn't seem to work still! Just facet_wrap
is not recognized?!
@ggplot(data=df, @aes(x=x,y=y)) + @geom_point() + facet_wrap(facets = :z)
ERROR: UndefVarError: `facet_wrap` not defined
ggplot and geom_point are both not macros - they should not have the @
before them
Ok so I tried these:
julia> ggplot(data=df, @aes(x=x,y=y)) + geom_point() + facet_wrap(facets = :z)
ERROR: LoadError: UndefVarError: `@aes` not defined
julia> ggplot(data=df, aes(x=x,y=y)) + geom_point() + facet_wrap(facets = :z)
ERROR: UndefVarError: `x` not defined
so looks like I am still missing something!!
do you have the latest version installed? all of the functions that it says you are missing were added recently.
try
using Pkg
Pkg.add(url="https://github.com/TidierOrg/TidierPlots.jl")
and see if that resolves your issues
I am using TidierPlots v0.1.0 !
That’s the problem then! The latest version is 0.5.2 and facetting wasn’t present in the 0.1.0 release. If you update to the latest version it should work as expected
Oh OK. Will try that then. Thanks again @rdboyes
No problem - I'm guessing that you installed via the Tidier metapackage? I just pushed an update that will make that package install the correct version
Yeah I think that's the issue that the update is restricted by the Tidier package. Once the push is in effect, I think it should be all good.
@aelmokadem It's possible that you have an old version of Tidier.jl, which accidentally restricted upgrades to base packages. If you update Tidier.jl, you should then be able to update TidierPlots.jl. I'm planning to push out a new version of Tidier.jl soon that will install the latest versions of all the base packages.
Thanks @rdboyes. I see you pushed the latest version. Thank you for doing that!
One thing to keep in mind is that specifying the full version number "0.5.2" won't allow for future updates to 0.7. But if you specify "0.5", then it will allow for future base package updates all the way up until 1. So I may tweak this in a future update with the intent of future-proofing Tidier.jl.
Ah - my mistake. Feel free to change it to "0.5" (or I can!)
Hi,
Want to start by saying this is a wonderful ecosystem for Julia.
I am having an issue using facetting with TidierPlots.jl. The code below gives an error
The error:
What am I missing here?