Open Side Menu
Skip to contentBrand Logo
Forums
Inspiration
Ideas
Communities
Blogs
Learning
Support
RegisterSign In
  1. Microsoft Fabric Community
  2. Power BI forums
  3. Galleries
  4. R Script Showcase
fathomson's avatar
fathomson
Advocate II
9 years ago

Schedule view

  Description A relatively simple visualization to show start-stop of events at locations. Can be roomscheduling but also a production process with specific states at a given time. Although i...
schedules_in_powerbi_with_r.pbix381 KB
General R Visualizations
Anonymous's avatar
Anonymous
Not applicable
8 years ago

Good morning!

 

Congrats for the great job. :-)

It is very useful for me.

One question: where is defined the variable datetime_start?

 

ggplot(dataset,aes(x=datetime_start, y=dataset$Room, color=Person)) +
  geom_segment(aes(x=From,xend=To,yend=dataset$Room),size=15) +
  scale_colour_discrete(guide=guide_legend(override.aes=list(size=10))) +
ggtitle("Room reservations for building X") + xlab("") + ylab("") + theme_bw()

 

Thanks for your time! :-)

  • boefraty's avatar
    boefraty
    Microsoft Employee
    8 years ago

    Hi Anonymous, 

    Sorry for delay in reponse. Do you still need help to your project? 

    To your question datetime_start is a typo in code. Luckily it was ignored by ggplot because aes is replaced. 

  • © 2026 Microsoft
  • Manage cookies
  • Privacy & cookies
  • Terms of use
  • Trademarks
Your Privacy Choices Consumer Health Privacy