plot.mrfi | R Documentation |
mrfi
objects.Plots a visual representation of the interaction structure
described in a mrfi
object. The black tile represents a reference pixel
and gray tiles are shown in relative positions with dependent pixels.
A ggplot
object is used, therefore, the user can load the ggplot2
package and add more ggplot
layers to freely customize the plot
.
## S3 method for class 'mrfi' plot(x, include_axis = FALSE, include_opposite = TRUE, ...)
x |
A |
include_axis |
|
include_opposite |
´logical' whether opposite directions should be included in the visualization of the dependence structure. |
... |
other arguments not used by this method. |
The data.frame
used for the ggplot
call has columns names rx
and ry
repŕesenting the relative positions.
A ggplot
object using geom_tile()
to represent interacting
relative positions.
Victor Freguglia
plot(mrfi(1)) library(ggplot2) plot(mrfi(1)) + geom_tile(fill = "red") plot(mrfi(1)) + geom_tile(fill = "blue") + theme_void() plot(mrfi(1)) + geom_text(aes(label = paste0("(",rx,",",ry,")")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.