skip to main content
Power BI
    • What is Power BI
    • Why Power BI
    • Customer stories
    • Data visuals
    • Security
    • Power BI Desktop
    • Power BI Pro
    • Power BI Premium
    • Power BI Mobile
    • Power BI Embedded
    • Power BI Report Server
  • Pricing
    • Azure + Power BI
    • Microsoft 365 + Power BI
    • Dynamics 365 + Power BI
      • Energy
      • Healthcare
      • Manufacturing
      • Media
      • Retail
    • For analysts
    • For IT
      • Overview
      • Embedded analytics
      • Power BI visuals
      • Automation
      • Documentation
      • Community
    • Overview
    • Find consulting services
    • Partner showcase
    • Find a partner
    • Become a partner
    • Instructor-led training
    • Getting started
      • Overview
      • Online workshops
      • Self-guided learning
      • Webinars
      • Documentation
      • Roadmap
      • Overview
      • Issues
      • Give feedback
    • Blog
    • Business intelligence topics
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Events
    • User groups
    • Community blog
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Microsoft Power BI Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power BI
    • Desktop
    • Service
    • Report Server
    • Power Query
    • Mobile Apps
    • Developer
    • DAX Commands and Tips
    • Custom Visuals Development Discussion
    • Health and Life Sciences
    • Power BI Spanish Community
    • Translated Spanish Desktop
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Training and Consulting
    • Instructor Led Training
    • Galleries
    • Community Connections & How-To Videos
    • COVID-19 Data Stories Gallery
    • Themes Gallery
    • Data Stories Gallery
    • R Script Showcase
    • Webinars and Video Gallery
    • Quick Measures Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Events
    • Ideas
    • Custom Visuals Ideas
    • Issues
    • Issues
    • Events
    • Upcoming Events
    • Community Engagement
    • T-Shirt Design Challenge 2023
    • Community Blog
    • Power BI Community Blog
    • Custom Visuals Community Blog
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Microsoft Power BI Community
    • Galleries
    • R Script Showcase
    • Slope Chart by MAQ Software

    Slope Chart by MAQ Software

    12-21-2017 07:23 AM - last edited 12-21-2017 07:24 AM

    MAQPowerBI
    Advocate I
    17211 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    MAQPowerBI
    MAQPowerBI Advocate I
    Advocate I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Slope Chart by MAQ Software

    ‎12-21-2017 07:23 AM

    Slope Chart allows users to analyze trends in data at a glance. This visual is useful for comparing interactions between two data points based on time or other user-chosen parameters. Slope Chart places primary emphasis on end points by focusing on the difference between the start and end values. Key features include: • The ability to display trends across various indicators. • Quick comparison of indicator growth or loss across categories. • Easy interaction with many data points using the zoom functionality. • Quick downloading of an image of the chart with the capture image widget. R package dependencies (auto installed): plotly and ggplot2

    Preview file
    37 KB
    SlopeChartByMAQSoftware.pbix
    Labels:
    • Labels:
    • General R Visualizations
    Message 1 of 4
    17,211 Views
    2
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    akj2784
    akj2784 Post Partisan
    Post Partisan
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-20-2018 08:34 AM

    Is there any configuration required for this. I installed R but it gives error.

     

    Feedback Type:
    Frown (Error)

    Timestamp:
    2018-03-20T15:34:01.8087909Z

    Local Time:
    2018-03-20T11:34:01.8087909-04:00

    Session ID:
    d7fa6a1d-1dea-4f77-80c3-468e7447324b

    Release:
    February 2018

    Product Version:
    2.55.5010.641 (PBIDesktop) (x64)

    Error Message:
    R script error.
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: ggplot2
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'ggplot2'
    2: In libraryRequireInstall("ggplot2") :
    *** The package: 'ggplot2' was not installed ***
    Loading required package: plotly
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'plotly'
    2: In libraryRequireInstall("plotly") :
    *** The package: 'plotly' was not installed ***
    Loading required package: magrittr
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'magrittr'
    2: In libraryRequireInstall("magrittr") :
    *** The package: 'magrittr' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Error in plot_ly() %>% layout(title = "", xaxis = xLayout, yaxis = yLayout) :
    could not find function "%>%"
    Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted


    OS Version:
    Microsoft Windows NT 6.3.9600.0 (x64 en-US)

    CLR Version:
    4.7 or later [Release Number = 461310]

    Peak Virtual Memory:
    34 GB

    Private Memory:
    307 MB

    Peak Working Set:
    473 MB

    IE Version:
    11.0.9600.18953

    User ID:
    18c4b28a-9bc6-4fc9-97a9-35b75d43d58f

    Workbook Package Info:
    1* - en-IN, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.

    Telemetry Enabled:
    True

    Model Default Mode:
    Import

    Snapshot Trace Logs:
    C:\Users\akjain\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShot536970509.zip

    Performance Trace Logs:
    C:\Users\akjain\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip

    Enabled Preview Features:
    PBI_shapeMapVisualEnabled
    PBI_EnableReportTheme
    PBI_numericSlicerEnabled
    CustomConnectors
    PBI_reportBookmarks
    PBI_qnaExplore
    PBI_variationUIChange

    Disabled Preview Features:
    PBI_SpanishLinguisticsEnabled
    PBI_AdobeAnalytics
    PBI_customVisualsGallery
    PBI_HanaV2

    Disabled DirectQuery Options:
    PBI_DirectQuery_Unrestricted

    Cloud:
    GlobalCloud

    Activity ID:
    null

    Time:
    Tue Mar 20 2018 11:33:55 GMT-0400 (Eastern Daylight Time)

    Client Error Code:
    ServiceErrorToClientError

    Error Details:
    R script error.
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: ggplot2
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'ggplot2'
    2: In libraryRequireInstall("ggplot2") :
    *** The package: 'ggplot2' was not installed ***
    Loading required package: plotly
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'plotly'
    2: In libraryRequireInstall("plotly") :
    *** The package: 'plotly' was not installed ***
    Loading required package: magrittr
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'magrittr'
    2: In libraryRequireInstall("magrittr") :
    *** The package: 'magrittr' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Error in plot_ly() %>% layout(title = "", xaxis = xLayout, yaxis = yLayout) :
    could not find function "%>%"
    Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted


    Stack Trace:
    Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: R script error.
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: ggplot2
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'ggplot2'
    2: In libraryRequireInstall("ggplot2") :
    *** The package: 'ggplot2' was not installed ***
    Loading required package: plotly
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'plotly'
    2: In libraryRequireInstall("plotly") :
    *** The package: 'plotly' was not installed ***
    Loading required package: magrittr
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'magrittr'
    2: In libraryRequireInstall("magrittr") :
    *** The package: 'magrittr' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Error in plot_ly() %>% layout(title = "", xaxis = xLayout, yaxis = yLayout) :
    could not find function "%>%"
    Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted
    ---> Microsoft.PowerBI.Radio.RScriptRuntimeException: R script error.
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: ggplot2
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'ggplot2'
    2: In libraryRequireInstall("ggplot2") :
    *** The package: 'ggplot2' was not installed ***
    Loading required package: plotly
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'plotly'
    2: In libraryRequireInstall("plotly") :
    *** The package: 'plotly' was not installed ***
    Loading required package: magrittr
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'magrittr'
    2: In libraryRequireInstall("magrittr") :
    *** The package: 'magrittr' was not installed ***
    Loading required package: htmlwidgets
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'htmlwidgets'
    2: In libraryRequireInstall("htmlwidgets") :
    *** The package: 'htmlwidgets' was not installed ***
    Loading required package: XML
    Warning messages:
    1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
    there is no package called 'XML'
    2: In libraryRequireInstall("XML") :
    *** The package: 'XML' was not installed ***
    Error in plot_ly() %>% layout(title = "", xaxis = xLayout, yaxis = yLayout) :
    could not find function "%>%"
    Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted

    at Microsoft.PowerBI.Radio.RScriptWrapper.RunScript(String originalScript, Int32 timeoutMs)
    at Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(ScriptHandlerOptions options)
    --- End of inner exception stack trace ---
    at Microsoft.PowerBI.Client.Windows.R.RScriptHandler.GenerateVisual(ScriptHandlerOptions options)
    at Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.RunInternal(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
    at Microsoft.PowerBI.ExploreServiceCommon.ScriptVisualCommandFlow.Run(Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
    at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDataShapeResult(QueryCommand transformCommand, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
    at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ExecuteDataQuery(IQueryResultDataWriter queryResultDataWriter, EntityDataModel model, IConceptualSchema schema, DataQuery query, Int32 queryId, ServiceErrorStatusCode& serviceErrorStatusCode)
    at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, ExecuteSemanticQueryRequest request, IConceptualSchema conceptualSchema, EntityDataModel model)

    DPI Scale:
    100%

    Supported Services:
    Power BI

    Formulas:


    section Section1;

    shared #"CO2 Emissions" = let
    Source = Excel.Workbook(File.Contents("C:\Users\gopal\Documents\power bi\proj\data\R visuals data.xlsx"), null, true),
    #"CO2 Emissions_Sheet" = Source{[Item="CO2 Emissions",Kind="Sheet"]}[Data],
    #"Changed Type" = Table.TransformColumnTypes(#"CO2 Emissions_Sheet",{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}}),
    #"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Country", type text}, {"2012", type number}, {"2013", type number}, {"2014", type number}}),
    #"Rounded Off" = Table.TransformColumns(#"Changed Type1",{{"2012", each Number.Round(_, 2), type number}, {"2013", each Number.Round(_, 2), type number}, {"2014", each Number.Round(_, 2), type number}})
    in
    #"Rounded Off";

    shared #"Department expenditure" = let
    Source = Excel.Workbook(File.Contents("C:\Users\gopal\Documents\power bi\proj\data\R visuals data.xlsx"), null, true),
    #"Department expenditure_Sheet" = Source{[Item="Department expenditure",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(#"Department expenditure_Sheet", [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Division", type text}, {"First quart", Int64.Type}, {"Second quart", Int64.Type}, {"Third quart", Int64.Type}, {"Fourth quart", Int64.Type}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"First quart", "Quarter 1"}, {"Fourth quart", "Quarter 2"}, {"Second quart", "Quarter 3"}, {"Third quart", "Quarter 4"}})
    in
    #"Renamed Columns";

    Message 2 of 4
    16,628 Views
    0
    Reply
    akj2784
    akj2784 Post Partisan
    Post Partisan
    In response to akj2784
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-20-2018 08:35 AM

    Could be related to package installation ?

    Do we have any documentation for the same ?

    Message 3 of 4
    16,626 Views
    0
    Reply
    akj2784
    akj2784 Post Partisan
    Post Partisan
    In response to akj2784
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-20-2018 09:48 AM

    I was able to fix this issue. 

    Thanks

    Message 4 of 4
    16,621 Views
    0
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    • Sign in
    • Sign up

    Browse

    • Solutions
    • Partners
    • Consulting Services

    Downloads

    • Power BI Desktop
    • Power BI Mobile
    • Power BI Report Server
    • See all downloads

    Learn

    • Guided learning
    • Documentation
    • Support
    • Community
    • Give feedback
    • Webinars
    • Developers
    • Blog
    • Newsletter

    © 2023 Microsoft

    Follow Power BI

    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices