I am using R 4.0 in Windows 10 and the manipulate sliders don't appear to be working with any of the examples that I take from the videos or textbook.
I did not meet any errors while running the code below, everything works perfectly except for not seeing the slider.
Is anyone else experiencing the same issue?
library(manipulate)
library(ggplot2)
library(HistData)
myHist <- function(mu){
g <- ggplot(Galton, aes(x = child))
g <- g + geom_histogram(fill = "salmon",
binwidth=1, aes(y = ..density..), colour = "black")
g <- g + geom_density(size = 2)
g <- g + geom_vline(xintercept = mu, size = 2)
mse <- round(mean((Galton$child - mu)^2), 3)
g <- g + labs(title = paste('mu = ', mu, ' MSE = ', mse))
g
}
manipulate(myHist(mu), mu = slider(62, 74, step = 0.5))