cca_heatmap | R Documentation |
This function plots the cca heatmap. The tiles within the upper 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.
cca_heatmap( cm, fontsize = 5, fontsize_diag = 4, chroma = "#527e11", decimal_digits = 1 )
cm |
Defines the data frame containing 1s, 0s, and NAs (in case of structural missingness). |
fontsize |
Defines the size of the font in the tiles. Default is fontsize=5. |
fontsize_diag |
Defines the size of the font in the diagonal grey tiles. Default is fontsize_diag=4. |
chroma |
Defines the color of the plot. Default is chroma="#527e11". |
decimal_digits |
Defines the number of digits in the tiles. Default is decimal_digits=1 and it can also be set as 0. |
cca_heatmap
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.