Skip main navigation

Add An R Or Python Visual


Add An R Or Python Visual

If you use the R or Python programming language, you can use them to visualise your data within Power BI Desktop. Power BI Desktop has an out-of-the-box visualisation option for both R and Python that you can access on the Visualisations pane, and the process for creating these visuals is almost the same.

Create An R Visual

Before you create the R visual, you must install R on your local computer so that Power BI Desktop can run R scripts. You can download and install R for free from many locations, including the Microsoft R Application Network and the CRAN Repository .

When you’ve verified your R installation, you can create the R visual. Select the R visual icon in the Visualizations pane and then select Enable on the window that displays.

Create a Python Visual

No prerequisites exist for creating a Python visual, so you can start right away in Power BI Desktop by selecting the Python visual icon in the Visualisations pane. Select Enable on the window that displays, and then you’ll then see a placeholder Python visual image on the report canvas, with the Python script editor underneath.

You can continue creating a Python visual in the same way as you did when creating the R visual. In summary, you would select the fields, write the Python script, and then select Run from the Python script editor title bar.

Import An R or Python Visual

To import an R or Python visual from AppSource, in the Visualisations pane, select the Get more visuals icon and then select Get more visuals. On the window that displays, locate and select the R or Python visual that you want to import and then select Add.

This article is from the free online

Microsoft Power BI: Advanced Data Analysis and Visualisation

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education