Closed GregorDeCillia closed 3 years ago
Hello, Thank you 😄
Good idea, I've implemented option 2 (easier). You have to re-install esquisse and datamods from GitHub :
remotes::install_github("dreamRs/datamods")
remotes::install_github("dreamRs/esquisse")
I'll plan a release on CRAN next week.
Best,
Victor
Thank you very much! After the update of datamods
and esquisse
, the data is imported with the ::
syntax. However, I am now running into issues with the dplyr filters. In the plot below, all levels of reshape2::tips$day
are displayed even tough the code export uses
`reshape2::tips` %>% filter(day %in% c("Sun", "Sat"))
I assume this has something to do with the implementation of this feature since datasets from the global environment are filtered correctly. Another thing I noticed is that there are backticks (`
) around the dataset name.
Ah yes thanks, should be solved if you re-install both packages (esquisse and datamods).
This was caused by the fact that even if the data is not specified in the displayed code, the executed code contains a call to ggplot(reshape2::tips)
and this object can't be overwritten by the new data filtered.
Victor
Works like a charm now. Thanks a lot for your efforts!
Hello. Let me first say thank you for this fantastic package. I'll use this package soon for a datviz course and would like to suggest a small, but significant improvement.
When datasets are loaded from packages, the R code export does not contain any lines to load the dataset in the environment. It would be very useful for beginners if you could add a line like
data(name, package)
orpackage::name
here, so the generated code can be run without any setup operations. Exampleor