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
    • Getting started
      • Overview
      • 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
    • Bar Chart with Error Bars
    Accepted Solution

    Bar Chart with Error Bars

    09-25-2016 19:38 PM - last edited 12-22-2016 19:52 PM

    Mike_Carlo
    MVP
    34422 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Mike_Carlo
    Mike_Carlo
    MVP
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Bar Chart with Error Bars

    ‎09-25-2016 07:38 PM

    Full Plot.PNG

     

     

     

     

     

     

     

     

     

     

     

     

     

    Description

    This is a chart that was built to show pricing of various products.  The data set contains many different prices for each product.  Therefore the bar is the average price and the error bars (whiskers) are portraying the one standard deviation away from the mean.

     

    Learn It

    The following tutorial uses the same R script shown here.  You can find more interesting power BI tutorials at www.powerbi.tips

     

    Prerequisites (The sample .pbix files won't work without installing the following)

    1. Install R Engine

    Power BI does not include the R engine.  Therefore, a seperate installation is required to install R on your local computer.  You can download R from the Revolution Open download page, and through the CRAN Repository.

     

    2. Install the R packages

    Once R engine has been installed you can dowload the package from the Revolution Open Package Downloads Page. 

     

    Required R Packages

    ggplot2

     

    Tested on

    MRO 3.3.1, CRAN 3.3.1

    Mike Carlo ( https://powerbi.tips )
    mike@PowerBI.Tips
    Bar with Error Bands.pbix
    3 KB
    Labels:
    • Labels:
    • General R Visualizations
    • R in Power Query
    Message 1 of 5
    34,422 Views
    7
    Reply
    1 ACCEPTED SOLUTION
    Sharon
    Microsoft Sharon
    Microsoft
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-30-2016 05:34 PM

    this is very interesting.  LIke!

    Message 2 of 5
    40,605 Views
    1
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    swragg
    swragg Helper I
    Helper I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-23-2020 08:45 PM

    The solution no longer works.

     

    Keep getting this error message:

     

     

    Capture.JPG

    Message 5 of 5
    16,702 Views
    1
    Reply
    boefraty
    Microsoft boefraty
    Microsoft
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-22-2016 02:27 AM

    Hi Michael,

    Your inputs for "R Script Showcase" are very impressive and valuable.  If you consider to convert some of your R-visuals to R-powered-custom visuals, out team will be happy to assist you. 

     

    The visibility of R-powered custom visuals is greater and it is not limited for R-users. 

    Message 3 of 5
    34,079 Views
    0
    Reply
    jamesperry
    jamesperry
    Frequent Visitor
    In response to boefraty
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎08-03-2018 02:04 AM

    Has anyone converted this into a custom visual yet?  

    Message 4 of 5
    28,605 Views
    0
    Reply
    Sharon
    Microsoft Sharon
    Microsoft
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎09-30-2016 05:34 PM

    this is very interesting.  LIke!

    Message 2 of 5
    40,606 Views
    1
    Reply

    Power Platform

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

    • Sign in
    • Sign up

    Browse

    • Solutions
    • 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