Learn R Programming

localboot (version 0.9.2)

plot_P: Plot Probability Matrix

Description

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.

Usage

plot_P(P)

Value

Generates a filled contour plot.

Arguments

P

A probability matrix to be plotted.

Examples

Run this code
P_matrix <- matrix(runif(100), 10, 10)
plot_P(P_matrix)

Run the code above in your browser using DataLab