ggDiagnose.matrix: Diagnostic plot for 'matrix' object ('ggplot2' based)

Description Usage Arguments Value Examples

View source: R/matrix.R

Description

Creates ggplot based visual of either image or heatmap for matrix objects.

Usage

1
2
ggDiagnose.matrix(x, type = "image", dendro_height = 0.25, ...,
  show.plot = TRUE, return = FALSE)

Arguments

x

matrix object

type

string of either "image" or "heatmap" the tells the function whether to display the matrix directly as an image or to reorder the columns and create a dendrogram. Note, the heatmap is a more general case of the image function call

dendro_height

proportional height of dendrogram compared to image if dendrograms a displayed.

...

used to pass additional heatmap parameters, see details in dfCompile.matrix.

show.plot

logic to display the graphic

return

logic to return list of graphics and the list of data frames to make the majority of the graphics

Value

depending on show.plot and return it will return the visualization of the graphic and/or a list of both the list of data frames used the make the graphic and the individual graphic object.

Examples

1
2
3
4
5
library(tidyverse)
data(iris)
iris_c <- iris %>% select(-Species) %>% cor %>% as.matrix 

ggDiagnose.matrix(iris_c, type = "heatmap")

benjaminleroy/ggDiagnose documentation built on May 4, 2019, 3:07 a.m.