question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better support for plotting libraries

See original GitHub issue

Siuba works with plotnine directly after >>, as

from siuba import _, mutate
from siuba.data import mtcars
import plotnine as p9

(mtcars
    >> mutate(hp_per_cyl = _.hp / _.cyl)
    >> p9.ggplot(p9.aes(x='cyl', y='hp_per_cyl')) + p9.geom_point()
)

… but needs a pipe to work with other plotting libraries like seaborn, altair, lets-plot, plotly, etc., as

from siuba import pipe
import plotly.express as px

(mtcars
    >> mutate(hp_per_cyl = _.hp / _.cyl)
    >> pipe(lambda d: px.scatter(data_frame=d, x='cyl', y='hp_per_cyl'))
)

Could other plotting libraries be supported directly after the >>?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
machowcommented, Apr 6, 2022

I think R side-steps the need for a pipe function by using non-standard evaluation 😬

0reactions
essicolocommented, Apr 6, 2022

Agreed. Or is naming pipe otherwise an option? Is there a grammar for a similar function in dplyr?

Read more comments on GitHub >

github_iconTop Results From Across the Web

15 Best Charting Libraries to Build Beautiful Application ...
The tool will help you kickstart your development of a dashboard by using stunning templates and beautiful chart styles.
Read more >
Top 6 Python Libraries for Visualization: Which one to Use?
Takeaway: Matplotlib can plot anything but complex plots might take much more codes than other libraries. Seaborn. Seaborn is a Python data ...
Read more >
12 Python Data Visualization Libraries to Explore for Business ...
This list is an overview of 10 interdisciplinary Python data visualization libraries including matplotlib, Seaborn, Plotly, Bokeh, pygal, ...
Read more >
15 JavaScript Libraries for Creating Beautiful Charts - SitePoint
The best JavaScript charting libraries for creating and graphs and ... Plotly.js supports 20 chart types, including SVG maps, 3D charts, ...
Read more >
Top 5 Best Python Plotting and Graph Libraries - AskPython
Plotly is an online visualization platform with library support. Here, we can build interactive plots just like Bokeh, however with additional graphs such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found