You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file 15-RStudio-essentials/1-Writing-Code/sample-script.R the definition of barchart has z listed twice and the function uses z where it should use x. It should be x, z to match the video.
In the file 15-RStudio-essentials/1-Writing-Code/sample-script.R the definition of barchart has z listed twice and the function uses z where it should use x. It should be x, z to match the video.
barchart <- function(x, z, width = 0.9) {
require(ggplot2)
counts <- table(x)
df <- data.frame(
value = names(counts),
count = as.numeric(counts)
)
ggplot(df) +
geom_bar(aes(x = value, y = count), stat = "identity", width = width)
}
The text was updated successfully, but these errors were encountered: