cca_heatmap: Plots the cca heatmap

View source: R/cca_heatmap.R

cca_heatmapR Documentation

Plots the cca heatmap

Description

This function plots the cca heatmap. The tiles within the triangular matrix contain color-coded data that demonstrate the degree of overlap between pairs of reviews using the corrected covered area (CCA) measure. It is taking as input the citation matrix, the font size of the text in the tiles and the color used in the heatmap.

Usage

cca_heatmap(cm, fontsize = 5, chroma = "#527e11")

Arguments

cm

A dataframe for the citation matrix

fontsize

A number which controls the aesthetic of font size of the numbers in the tiles of the heatmap

chroma

The color of the heatmap

Value

cca_heatmap

Examples

DATASET<-readxl::read_excel(system.file('extdata','cca.xlsx', package = 'ccaR'))


cca_heatmap(DATASET, 3) +
    ggplot2::theme(
        plot.caption = ggplot2::element_text(size = 16, margin=ggplot2::margin(30,0,0,0)),
        legend.title = ggplot2::element_text(size = 16, face = "bold", vjust=4),
        legend.text = ggplot2::element_text(size = 16),
        legend.key.size = ggplot2::unit(1.0, "cm"),
        legend.title.align = 0.5,
        legend.text.align = 0.5,
        axis.text.x=ggplot2::element_text(size = 16),
        axis.text.y=ggplot2::element_text(size = 16),
        axis.title=ggplot2::element_blank(),
        axis.ticks=ggplot2::element_blank(),
        axis.line=ggplot2::element_blank(),
        panel.border=ggplot2::element_blank(),
        panel.grid.major.x=ggplot2::element_line(colour = "grey80", linetype = "dashed"))

thdiakon/ccaR_v3 documentation built on Aug. 22, 2022, 1:49 a.m.