powered by
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.
plot_P(P)
Generates a filled contour plot.
A probability matrix to be plotted.
P_matrix <- matrix(runif(100), 10, 10) plot_P(P_matrix)
Run the code above in your browser using DataLab