I am working to plot a dataset of snow depth in a grid, with depth as a continuous variable. But, some plots in the grid were partially covered. These are divided into plots >50% and <50% covered in the same variable as the depth measurements, marked as 'over' and 'under'.
When I try to plot the data with ggplot 2 using:
myplot <- ggplot()+
geom_tile(data=table, aes(x=factor(Row), y=Colum, fill= Snow_depth))+
scale_fill_gradient(low="#0066CC", high="#FF3333")
I of course get the error:
Error: Discrete value supplied to continuous scale
How can I include this discrete data and give them a clear colour label, so all the information is shown in the same image?