Rpy2 Tutorial: R plots in Jupyter Notebooks
Sep 26, 2023
In this tutorial we learn how to run r in python and display plots in jupyter notebooks. We learn by plotting in two rpy2 examples in which we use R libraries (e.g., graphics and ggplot2).
To display the R plots, using Python, in a Jupyter Notebook we use Image and display from IPython.display.
For you who don't know; Rpy2 is a Python package that makes it very easy to call r from Python. If you are using anaconda Python distribution you can easily install r and rpy2 using conda (see example in video).
Make sure you subscribe to the channel if you haven't: http://bit.ly/SUB2EM
» A working Jupyter Notebook containing the code:
http://bit.ly/RinPythonCode
» Learn how to install R-packages from Python:
https://youtu.be/GvmoOHkABNA
» Another rpy2 tutorial (text): http://bit.ly/rpy2how-to
» Rpy2 documentation: https://rpy2.readthedocs.io/
Show More Show Less #Computers & Electronics
#Programming
#Education
#Physics
#Computer Education
