.makeDendro {ngsReports} | R Documentation

## Make the dendrogram for heatmap-style plots

### Description

Set the clusters for heatmap-style interactive plots

### Usage

    .makeDendro(df, rowVal, colVal, value)

### Arguments

`df` | The data frame to be clustered
`rowVal` | The rows to be clustered
`colVal` | The value which will become column names
`value` | The value to use for the clustering

### Value

A dendrogram

### Examples

    # Get the files included with the package
    packageDir <- system.file("extdata", package = "ngsReports")
    fileList <- list.files(packageDir, pattern = "fastqc.zip", full.names = TRUE)
    cols <- c("Filename", "Position", "Illumina_Universal_Adapter")
    ac <- getModule(fileList, "Adapter_Content")[cols]
    ngsReports:::.makeDendro(df = ac,
                                rowVal = "Filename",
                                colVal = "Position",
                                value = "Illumina_Universal_Adapter")

[Package ngsReports version 1.6.1 Index]