You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. I am a developer working on an enhancement tool called ggcall, designed to improve the transparency and reproducibility of ggplot2 visualizations by overwriting the ggplot and + operator functions. This tool enables full visibility of the plotting code even when ggplot2 is used within other functions, leveraging metaprogramming to ensure precise replication.
I have developed a fork of GGally where ggcall has been integrated successfully, and I would like to propose this addition to the main GGally repository. The integration has significantly enhanced the functionality of GGally by making the plot creation process fully transparent and reproducible.
Integrating ggcall requires adding a new R script (small one file) to the GGally package and modifying the already overridden + operator from ggplot2 within GGally. Please check out the fork and https://github.com/Polkas/ggcall/blob/main/inst/ggally.R.
Benefits of Integrating ggcall into GGally:
Enhanced Transparency and Reproducibility: Users can see and replicate the exact code used in plot creations, which is crucial for academic and research purposes where verification of visual data representation is needed.
Increased Usability: Makes GGally more user-friendly for new R users who are learning plot construction by providing them with clear coding paths used in plot generation.
Community Growth: Attracts a broader user base who value open science and transparency in coding.
Example Usage:
Here's how ggcall can be used with GGally:
remotes::install_github("https://github.com/Polkas/ggally")
library(GGally)
data(mtcars)
gg<- ggcorr(mtcars, method="everything", label=TRUE)
gg_call<- ggcall(gg)
gg_call# Optionally: Style the code with styler# styler::style_text(deparse1(gg_call))# Optional# Access call environment and/or use it to evaluate the call# as.list(ggcall_env(gg_call))
eval_ggcall(gg_call)
#'
data(iris)
gg<- ggscatmat(iris, color="Species")
gg_call<- ggcall(gg)
gg_call# Optionally: Style the code with styler# styler::style_text(deparse1(gg_call))# Optional# Access call environment and/or use it to evaluate the call# as.list(ggcall_env(gg_call))
eval_ggcall(gg_call)
#'
data(tips, package="reshape")
# Not supported for ggmatrix like plotsgg<- ggduo(tips, mapping=ggplot2::aes(colour=sex), columnsX=3:4, columnsY=1:2)
# Will fail# gg_call<- ggcall(gg)
Fork Repository:
You can find the working implementation in my forked repository here: ggcall-GGally fork
I believe this enhancement will be a valuable addition to GGally. I am eager to hear your thoughts on this proposal and discuss any potential concerns you might have. Thank you for considering this integration. I look forward to your feedback.
Best regards,
Maciej Nasinski
The text was updated successfully, but these errors were encountered:
Hello
GGally
Team,I hope this message finds you well. I am a developer working on an enhancement tool called
ggcall
, designed to improve the transparency and reproducibility ofggplot2
visualizations by overwriting theggplot
and+
operator functions. This tool enables full visibility of the plotting code even whenggplot2
is used within other functions, leveraging metaprogramming to ensure precise replication.I have developed a fork of
GGally
whereggcall
has been integrated successfully, and I would like to propose this addition to the mainGGally
repository. The integration has significantly enhanced the functionality ofGGally
by making the plot creation process fully transparent and reproducible.Integrating ggcall requires adding a new R script (small one file) to the GGally package and modifying the already overridden + operator from ggplot2 within GGally. Please check out the fork and https://github.com/Polkas/ggcall/blob/main/inst/ggally.R.
Benefits of Integrating
ggcall
intoGGally
:GGally
more user-friendly for new R users who are learning plot construction by providing them with clear coding paths used in plot generation.Example Usage:
Here's how
ggcall
can be used withGGally
:Fork Repository:
You can find the working implementation in my forked repository here: ggcall-GGally fork
I believe this enhancement will be a valuable addition to
GGally
. I am eager to hear your thoughts on this proposal and discuss any potential concerns you might have. Thank you for considering this integration. I look forward to your feedback.Best regards,
Maciej Nasinski
The text was updated successfully, but these errors were encountered: