Skip to content
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

macro to plot in Pluto #409

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

diegozea
Copy link
Contributor

Hi!

This PR exports the @html_plot macro to display R plots in Pluto:

image

image

This is related to fonsp/Pluto.jl#1085 and https://stackoverflow.com/questions/64049836/using-ggplot2-with-julia-pluto-notebook

I hope it is helpful,

Best regards,

@diegozea
Copy link
Contributor Author

The failing checks look unrelated to this PR.

@diegozea
Copy link
Contributor Author

NOTE: String interpolation is not working inside the macro.

@diegozea
Copy link
Contributor Author

NOTE: It doesn't work for packages that create their own device inside a function, e.g.: https://www.rdocumentation.org/packages/factoextra/versions/1.0.7/topics/eigenvalue

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch coverage: 96.55% and project coverage change: +0.72% 🎉

Comparison is base (305efff) 75.16% compared to head (9053bd4) 75.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #409      +/-   ##
==========================================
+ Coverage   75.16%   75.89%   +0.72%     
==========================================
  Files          25       26       +1     
  Lines        1623     1651      +28     
==========================================
+ Hits         1220     1253      +33     
+ Misses        403      398       -5     
Files Changed Coverage Δ
src/RCall.jl 100.00% <ø> (ø)
src/ijulia.jl 9.52% <80.00%> (+9.52%) ⬆️
src/html_plot.jl 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants