Skip to content
forked from mengxu98/thisplot

An R package providing utility functions for plotting.

License

Notifications You must be signed in to change notification settings

hhj7878/thisplot

 
 

Repository files navigation

thisplot

CRAN_Status_Badge develop-ver R-CMD-check test-coverage pkgdown RStudio CRAN mirror downloads

Introduction

thisplot is an R package providing utility functions for data visualization and plotting. It includes tools for color manipulation (blending, conversion, palettes), plot customization (themes, grob operations, patchwork building), panel size control, data optimization for plots, and layout adjustments. Designed to enhance workflows with ggplot2, patchwork, and ComplexHeatmap.

Chinese traditional colors

The package includes a comprehensive Chinese traditional color system with 1058 representative colors. You can access colors by name (pinyin or Chinese), create color palettes, and visualize color collections.

Example usage:

library(thisplot)
cc <- ChineseColors()
cc$visual_colors(
  num_per_row = 30,
  title = "Chinese traditional colors",
  name_type = "chinese"
)

show_palettes(
  palettes = get_chinese_palettes()
)

Installation

Install CRAN version:

install.packages("thisplot")
# or
if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("thisplot")

Install development version from GitHub use pak:

if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("mengxu98/thisplot")

Usage

Please reference here.

About

An R package providing utility functions for plotting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 75.8%
  • Python 24.2%