R 패키지 메타데이터와 수집 신호를 모아 봅니다.
첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.
DESCRIPTION에서 감지한 backend 관련 package입니다.
기본 메타데이터를 작은 카드와 토큰으로 압축합니다.
| Package | Type | Spec |
|---|---|---|
| colorspace CRAN · 0.1.1 · 2026-05-30 | Imports | colorspace |
| grDevices CRAN · 0.1.1 · 2026-05-30 | Imports | grDevices |
| methods CRAN · 0.1.1 · 2026-05-30 | Imports | methods |
| stats CRAN · 0.1.1 · 2026-05-30 | Imports | stats |
| knitr CRAN · 0.1.1 · 2026-05-30 | Suggests | knitr |
| 검색 결과가 없습니다. | ||
| Package | Type | Spec |
|---|---|---|
| sfcurve 1.0.1 CRAN · 2026-05-30 | Imports | colorRamp2 |
| turkeyelections 0.1.4 CRAN · 2026-05-30 | Imports | colorRamp2 |
| 검색 결과가 없습니다. | ||
| Type | Packages |
|---|---|
| Imports | 2 |
README code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } .sourceCode { overflow: visible; } code.sourceCode > span { color: inherit; text-decoration: inherit; } div.sourceCode { margin: 1em 0; } pre.sourceCode { margin: 0; } @media screen { div.sourceCode { overflow: auto; } } @media print { pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } } pre.numberSource code { counter-reset: source-line 0; } pre.numberSource code > span { position: relative; left: -4em; counter-increment: source-line; } pre.numberSource code > span > a:first-child::before { content: counter(source-line); position: relative; left: -1em; text-align: right; vertical-align: baseline; border: none; display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; padding: 0 4px; width: 4em; color: #aaaaaa; } pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } div.sourceCode { } @media screen { pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; } } code span.al { color: #ff0000; font-weight: bold; } /* Alert */ code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ code span.at { color: #7d9029; } /* Attribute */ code span.bn { color: #40a070; } /* BaseN */ code span.bu { color: #008000; } /* BuiltIn */ code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ code span.ch { color: #4070a0; } /* Char */ code span.cn { color: #880000; } /* Constant */ code span.co { color: #60a0b0; font-style: italic; } /* Comment */ code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ code span.do { color: #ba2121; font-style: italic; } /* Documentation */ code span.dt { color: #902000; } /* DataType */ code span.dv { color: #40a070; } /* DecVal */ code span.er { color: #ff0000; font-weight: bold; } /* Error */ code span.ex { } /* Extension */ code span.fl { color: #40a070; } /* Float */ code span.fu { color: #06287e; } /* Function */ code span.im { color: #008000; font-weight: bold; } /* Import */ code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ code span.kw { color: #007020; font-weight: bold; } /* Keyword */ code span.op { color: #666666; } /* Operator */ code span.ot { color: #007020; } /* Other */ code span.pp { color: #bc7a00; } /* Preprocessor */ code span.sc { color: #4070a0; } /* SpecialChar */ code span.ss { color: #bb6688; } /* SpecialString */ code span.st { color: #4070a0; } /* String */ code span.va { color: #19177c; } /* Variable */ code span.vs { color: #4070a0; } /* VerbatimString */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ colorRamp2: Generate Color Mapping Functions Install The package can be installed from CRAN: install.packages ( "colorRamp2" ) or directly from GitHub: devtools :: install_github ( "jokergoo/colorRamp2" ) Usage The colorRamp2() function can generate a color mapping function from a vector of break values and a vector of corresponding colors. Other colors are linearly interpolated in a certain color space. library (colorRamp2) col_fun = colorRamp2 ( c ( 0 , 0.5 , 1 ), c ( "blue" , "white" , "red" )) col_fun ( seq ( 0 , 1 , length = 20 )) ## [1] "#0000FFFF" "#522CFFFF" "#7448FFFF" "#8E61FFFF" "#A479FFFF" "#B891FFFF" ## [7] "#C9A9FFFF" "#DAC1FFFF" "#E9DAFFFF" "#F8F3FFFF" "#FFF5F1FF" "#FFE1D6FF" ## [13] "#FFCDBBFF" "#FFB8A1FF" "#FFA388FF" "#FF8E6EFF" "#FF7756FF" "#FF5E3DFF" ## [19] "#FF3F23FF" "#FF0000FF" plot ( NULL , xlim = c ( 0 , 1 ), ylim = c ( 0 , 1 )) x = seq ( 0 , 1 , length = 20 ) y = rep ( 0.5 , 20 ) points (x, y, pch = 16 , col = col_fun (x), cex = 2 ) image License MIT @ Zuguang GuHelp for package colorRamp2 const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {colorRamp2} Contents add_transparency col2value colorRamp2 rand_color Type: Package Title: Generate Color Mapping Functions Version: 0.1.1 Date: 2026-04-09 Description: A color mapping is generated according to the break values and corresponding colors. Other colors are generated by interpolating in a certain color space. The functions were part of the 'circlize' package https://CRAN.R-project.org/package=circlize . Depends: R (> 3.0.0) Imports: colorspace, grDevices, methods, stats Suggests: knitr VignetteBuilder: knitr URL: https://github.com/jokergoo/colorRamp2 License: MIT + file LICENSE NeedsCompilation: no Packaged: 2026-04-09 00:37:04 UTC; guz Author: Zuguang Gu [aut, cre] Maintainer: Zuguang Gu <guzuguang@suat-sz.edu.cn> Repository: CRAN Date/Publication: 2026-04-10 08:10:08 UTC Add transparency to colors Description Add transparency to colors Usage add_transparency(col, transparency = 0) Arguments col A vector of colors. transparency Transparency, numeric value between 0 and 1. Value A vector of colors. Examples add_transparency("red", 0.5) add_transparency(1, 0.5) add_transparency("#FF000080", 0.2) Convert back from colors to values Description Convert back from colors to values Usage col2value(r, g, b, col_fun) Arguments r Red channel in sRGB color space. Value should be between 0 and 1. The value can also be a character vector of colors or a three-column matrix with r, g, b as columns. In this case, g and b are ignored, g Green channel in sRGB color space. Value should be between 0 and 1. b Blue channel in sRGB color space. Value should be between 0 and 1. col_fun the color mapping function generated by colorRamp2 . Details colorRamp2 maps values to colors and this function does the reversed job. Note for some color spaces, it cannot convert back to the original value perfectly. Value A vector of original numeric values. Author(s) Zuguang Gu <z.gu@dkfz.de> Examples x = seq(0, 1, length.out = 11) col_fun = colorRamp2(c(0, 0.5, 1), c("blue", "white", "red")) col = col_fun(x) col2value(col, col_fun = col_fun) col2value("red", col_fun = col_fun) col_fun = colorRamp2(c(0, 0.5, 1), c("blue", "white", "red"), space = "sRGB") col = col_fun(x) col2value(col, col_fun = col_fun) Generate color mapping functions Description Generate color mapping functions Usage colorRamp2(breaks, colors, transparency = 0, space = "LAB", hcl_palette = NULL, reverse = FALSE) Arguments breaks A vector of numeric break values. colors A vector of colors which correspond to values in breaks . transparency A single value in [0, 1] . 0 refers to no transparency and 1 refers to full transparency. space Color space in which colors are interpolated. Value should be one of "RGB", "LAB", "XYZ", "sRGB", "LUV", see color-class for details. hcl_palette Name of the HCL palette. Value should be supported in hcl.pals . reverse Whether should the colors in hcl_palette be reversed. Details Colors are linearly interpolated according to the break values and corresponding colors through a certain color space. Values exceeding breaks will be assigned with corresponding maximum or minimum colors. Value A function which accepts a vector of numeric values and returns interpolated colors. See Also col2value converts back to the original values by providing the color mapping function generated by colorRamp2 . Examples col_fun = colorRamp2(c(-1, 0, 1), c("green", "white", "red")) col_fun(c(-2, -1, -0.5, 0, 0.5, 1, 2)) Generate random colors Description Generate random colors Usage rand_color(n, hue = NULL, luminosity = "random", transparency = 0, friendly = FALSE) Arguments n Number of colors hue The hue of the generated color. You can use following default color name: red , orange , yellow , green , blue , purple , pink and monochrome . If the value is a hexidecimal color string such as #00FFFF , the function will extract its hue value and use that to generate colors. luminosity it controls the luminosity of the generated color. The value should be a string containing bright , light , dark and random . transparency Transparency, numeric value between 0 and 1. friendly If it is true, light random colors will not be generated. Details The code is adapted from randomColor.js ( https://github.com/davidmerfield/randomColor ). Value A vector of colors. Author(s) Zuguang Gu <z.gu@dkfz.de> Examples plot(NULL, xlim = c(1, 10), ylim = c(1, 8), axes = FALSE, ann = FALSE) points(1:10, rep(1, 10), pch = 16, cex = 5, col = rand_color(10)) points(1:10, rep(2, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "bright")) points(1:10, rep(3, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "light")) points(1:10, rep(4, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "dark")) points(1:10, rep(5, 10), pch = 16, cex = 5, col = rand_color(10, hue = "red", luminosity = "bright")) points(1:10, rep(6, 10), pch = 16, cex = 5, col = rand_color(10, hue = "green", luminosity = "bright")) points(1:10, rep(7, 10), pch = 16, cex = 5, col = rand_color(10, hue = "blue", luminosity = "bright")) points(1:10, rep(8, 10), pch = 16, cex = 5, col = rand_color(10, hue = "monochrome", luminosity = "bright"))Add transparency to colors
add_transparency(col, transparency = 0)add_transparency("red", 0.5) add_transparency(1, 0.5) add_transparency("#FF000080", 0.2)Convert back from colors to values
col2value(r, g, b, col_fun)x = seq(0, 1, length.out = 11) col_fun = colorRamp2(c(0, 0.5, 1), c("blue", "white", "red")) col = col_fun(x) col2value(col, col_fun = col_fun) col2value("red", col_fun = col_fun) col_fun = colorRamp2(c(0, 0.5, 1), c("blue", "white", "red"), space = "sRGB") col = col_fun(x) col2value(col, col_fun = col_fun)Generate color mapping functions
colorRamp2(breaks, colors, transparency = 0, space = "LAB", hcl_palette = NULL, reverse = FALSE)col_fun = colorRamp2(c(-1, 0, 1), c("green", "white", "red")) col_fun(c(-2, -1, -0.5, 0, 0.5, 1, 2))Generate random colors
rand_color(n, hue = NULL, luminosity = "random", transparency = 0, friendly = FALSE)plot(NULL, xlim = c(1, 10), ylim = c(1, 8), axes = FALSE, ann = FALSE) points(1:10, rep(1, 10), pch = 16, cex = 5, col = rand_color(10)) points(1:10, rep(2, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "bright")) points(1:10, rep(3, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "light")) points(1:10, rep(4, 10), pch = 16, cex = 5, col = rand_color(10, luminosity = "dark")) points(1:10, rep(5, 10), pch = 16, cex = 5, col = rand_color(10, hue = "red", luminosity = "bright")) points(1:10, rep(6, 10), pch = 16, cex = 5, col = rand_color(10, hue = "green", luminosity = "bright")) points(1:10, rep(7, 10), pch = 16, cex = 5, col = rand_color(10, hue = "blue", luminosity = "bright")) points(1:10, rep(8, 10), pch = 16, cex = 5, col = rand_color(10, hue = "monochrome", luminosity = "bright"))| Repository | Version | Published | First seen | Last seen | Docs |
|---|---|---|---|---|---|
| CRAN | 0.1.1 | 2026-05-29 | 2026-05-30 |
표시할 OSV 데이터가 없습니다.
표시할 OpenAlex 데이터가 없습니다.