Reticulate example: Visualizing pandas dataframes with ggplot2

reticulate
rmarkdown
You can use Python and R together within R Markdown by using code chunks that call either language.

Screenshot of R Markdown report using reticulate deployed to Connect

Using Python with R Markdown

You can use Python and R together within R Markdown by using code chunks that call either language.

The example R Markdown uses the reticulate package to hand off a pandas dataframe from a Python code chunk to an R code chunk that plots the data using ggplot2. The process is then reversed, reading a dataset from R and handing over to a Python code chunk.

Resources

Back to top