Comments (2)
library(ggplot2)
library(dplyr)
library(palmerpenguins)
library(ggblanket)
library(patchwork)
set_blanket()
p1 <- penguins |>
mutate(across(sex, \(x) stringr::str_to_sentence(x))) |>
gg_point(
x = flipper_length_mm,
y = body_mass_g,
col = bill_length_mm,
col_palette = viridis::viridis(20, option = "G"),
# mode = light_mode_t(),
col_breaks = scales::breaks_pretty(4),
col_steps = FALSE,
)
p2 <- p1 +
theme(legend.ticks.length = ggplot2::rel(c(0.175, 0))) +
theme(legend.ticks = element_line(colour = lightness[3], linewidth = linewidthness[1]))
p1 + p2
# p3 <- p1 +
# theme(legend.ticks.length = rel(c(-0.175, 0))) +
# theme(legend.ticks = element_line(colour = lightness[3], linewidth = linewidthness[1]))
#
# p2 + p3
from ggblanket.
Done :)
from ggblanket.
Related Issues (20)
- design: force all optional args to be named HOT 2
- docs: use `position_dodge2(preserve = "single")` HOT 1
- aes_contrast: remove mode_family argument
- ness helpers are not well named HOT 2
- Bug: in colouring with when `col_palette_d` was set with names not in the data HOT 1
- set_blanket: non-named values in col scales does not work where there are named values in set col_palette_d HOT 1
- docs: update vignette multiple layers example HOT 1
- rug breaks with DEV ggplot2
- stat bin changes with DEV ggplot2
- *_limits: consider removing from x/y HOT 3
- *_breaks` & `y_limits`: where both set, breaks does not work
- x-scale not working great in the below example HOT 1
- consider shifting default back to grey (and facet shift as well) HOT 1
- positional scales: remove `*_limits`, `*_oob` and `*_expand` HOT 1
- positional scales: make symmetric scale even if *_expand is not NULL
- positional scales: remove `*_transform`
- positional scales: could make symmetric if limits specified by dividing into equal parts
- *_labels loses default where *_transform = "sqrt" etc
- symmetric axis where limits specified (and breaks not specified)
- mode: make legend boxes left align
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggblanket.