Plot Probability Matrix
This function creates a filled contour plot of a probability matrix using the viridis color palette. The plot is created using the ggplot2 and viridis libraries.
viridis
ggplot2
plot_P(P)
P
Generates a filled contour plot.
P_matrix <- matrix(runif(100), 10, 10) plot_P(P_matrix)
Useful links