Thank you,
please see the following
x<-as.numeric(moviedata$gross)
y<-as.numeric(moviedata$budget)
mutate(moviedata, profit = x - y)
moviedata$sequelcat <- factor(moviedata$dummy_sequel, levels = c(0, 1),
labels = c("ORIGINAL", "SEQUEL"))
ggplot(moviedata, aes(x = sequelcat, y = profit, fill = year)) +
geom_violin() + # Make it a Violin Plot
theme_bw() + # Change Background Color
labs(title = "Weight of Cars by Origin") + # Add a Title ylim(1500, 5200) + # Range for Y-Axis
xlab("Origin") + # Label for X-Axis ylab("Weight (lbs)") + # Label for Y-Axis
guides(fill=FALSE) + # Remove the legend
scale_fill_manual(values=c("#666666", "#999999", "#BBBBBB")) + # Change Fill Color
geom_boxplot(width=0.2) # Add a Box Plot on Top
Error: Discrete value supplied to continuous scale
Please can you point me how to post questions in the forum?