I am doing some data visualisation on financial time series.
I basically want the heatmap below, but without the hour axis, i.e., I want to show the average price change for each weekday, to see if there is statistically a better chance of appreciation/depreciation on certain days of the week.
My original plot is here:
My code is:
ggplot(Change , aes(x=Hour, y=Day, fill = Change)) +
+ geom_tile(color = "white", size = 0.2) +
+ scale_x_discrete(expand=c(0,0)) +
+ scale_y_discrete(expand=c(0,0)) +
+ scale_fill_viridis(name="Price Range", option = "plasma") +
+ coord_equal() +
+ labs(x="Hour", y=NULL, title=sprintf("price range by hr")) +
+ theme_tufte(base_family="Helvetica") +
+ theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1))