DBDelve
Dive deep into your data. A fast, native, multi-engine database client written in Rust. Free and open source, no telemetry.
翻訳待ち
Provides grid grobs that fill in a user-defined area with various patterns. Includes enhanced versions of the geometric and image-based patterns originally contained in the ggpattern package as well a
翻訳待ち
開発ツールR · RubyGitHub @trevorldオンライン所有者未確認
Have you tried it? One tap is enough. No sign-in needed.
'grid' Pattern Grobs
翻訳待ち
Loading the full README.
Read the full README ↗gridpattern provides grid.pattern() and
patternGrob()
functions to use with R's grid graphics system. They fill in a
user-specified boundary path with a user-specified pattern. These pattern grobs include
enhanced versions of the patterns originally contained within
Mike FC's awesome
ggpattern package
as well as several original patterns.
{gridpattern} currently provides {grid} grob support for the following patterns:
You can install the development version from R-universe
install.packages('gridpattern', repos = c('https://trevorld.r-universe.dev', 'https://cloud.r-project.org'))
or straight from the source hosted on Github using the {remotes} package:
# install.packages("remotes")
remotes::install_github("trevorld/gridpattern")
You can install the CRAN release version using:
install.packages("gridpattern")
library("grid")
library("gridpattern")
x_hex <- 0.5 + 0.5 * cos(seq(2 * pi / 4, by = 2 * pi / 6, length.out = 6))
y_hex <- 0.5 + 0.5 * sin(seq(2 * pi / 4, by = 2 * pi / 6, length.out = 6))
grid.pattern_circle(x_hex, y_hex, density = 0.5, grid = "hex_circle",
fill = c("blue", "yellow", "red"))
grid.pattern_regular_polygon(x_hex, y_hex, shape = c("convex4", "star8", "circle"),
colour = "black", fill = c("blue", "yellow", "red"),
density = c(0.45, 0.42, 0.4), spacing = 0.08, angle = 0)
grid.pattern_regular_polygon(x_hex, y_hex, shape = "convex6", grid = "hex",
color = "transparent", fill = c("white", "grey", "black"),
density = 1.0, spacing = 0.1)
gp <- gpar(fill = c("yellow", "blue", "red"))
grid.pattern_polygon_tiling(x_hex, y_hex, type = "truncated_hexagonal",
spacing = 0.15, gp = gp)
This is the beginning of the README. Read the rest at the original. Read the full README ↗