Showing results for 
Search instead for 
Did you mean: 
abisaileon11 Regular Visitor
Regular Visitor

Problem when trying to show a graphic with R

Hi everyone, 
I've been trying to use the R feature to forecast the demand of some products, I installed all the necessary packages but when i run the code I get this message.


Error Message:
Error del script R.
Loading required package: scales
Loading required package: forecast
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

as.Date, as.Date.numeric

Error in plot.forecast(prediction, lwd = pointCex, col = alpha(pointsCol, :
could not find function "plot.forecast"
Execution halted


I wonder if there is a way to solve it. 
Thank you.

v-danhe-msft Super Contributor
Super Contributor

Re: Problem when trying to show a graphic with R

Hi @abisaileon11 ,

Could you have libraried all of the packages? And could you have tried to run in R script to see if it could run in R?



Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 54 members 1,470 guests
Please welcome our newest community members: