tile.plot: Tile.plot Plots a matrix as tile with color according to...

View source: R/plots.R

tile.plotR Documentation

Tile.plot Plots a matrix as tile with color according to intensity

Description

Tile.plot Plots a matrix as tile with color according to intensity

Usage

tile.plot(adj.mat, max.color.value = 0.8, text.size = 3, brewer.set = "Set1")

Arguments

adj.mat

is the input matrix, with named rows and columns and numerical cells

Value

a ggplot2 tile plot

Examples

data(pe13)
mat                  <- data.frame(degree = pe13$Degree...1, reach = pe13$Reach, memberships = pe13$Memberships)
rownames(mat)        <- as.character(pe13$Name)
adj.mat              <- t(as.matrix(mat[1:20,]))
tile.plot(adj.mat)

antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.