Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d24a517

Browse files
committed
forgot to add this file
1 parent 61d13c8 commit d24a517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9_DEVDATAPROD/Developing Data Products Course Notes.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ library(plotly); library(ggplot2)
482482
# load data
483483
load("courseraData.rda")
484484
# bar plot using ggplot2
485-
g <- ggplot(myData, aes(y = enrollment, x = class, fill = offering))
485+
g <- ggplot(myData, aes(y = enrollment, x = class, fill = as.factor(offering)))
486486
g <- g + geom_bar(stat = "identity")
487487
g
488488
# initiate plotly object

0 commit comments

Comments
 (0)