Comments (1)
You just need to unquote the variable:
plot_sc = function(x) { ggstatsplot::ggscatterstats(
data = dat,
x = !!x,
y = "Riskscore",
type = "np",
k = 2L,
title = '',
messages = FALSE,
marginal.type = "density")
}
Here is minimal reprex:
library(rlang)
plot_sc = function(x) ggstatsplot::ggscatterstats(mtcars, !!x, "mpg")
splots = lapply(colnames(mtcars)[2:3], plot_sc)
Created on 2024-03-03 with reprex v2.1.0
from ggstatsplot.
Related Issues (20)
- "Removing" the violin plot from `ggbetweenstats` does not really remove it, but rather adds a thin line on the plot. HOT 5
- ggpiestats Cramer's V upper confidence intervals is always 1, and it shouldn't be HOT 2
- packages not installing in Rstudio HOT 1
- Invalid class "ddenseModelMatrix" object HOT 1
- is there a way to modify the whisker portion of `ggbetweenstats`? HOT 1
- Change in palette HOT 1
- Automatic color change to violin and box plot (from black -> orange) HOT 1
- How to export data from grouped extract_stats efficiently?
- Second Confidence Interval Always 1.00 For K-W? HOT 5
- Option for Pairwise Effect Sizes in Caption HOT 1
- ggbetweenstats Hedge's g change it to Cohen's d HOT 1
- Update outdated docs
- Add details to `ggdotplotstats()` regading the statistic of interest
- Decimals won't work HOT 12
- Issue: manually chosen colors do not work for ggbetweenstats HOT 1
- Highlight some points in violin plots HOT 1
- Minor refactoring of `ggbarstats()`
- Don't drop empty groups HOT 1
- Question: are numerical results available in the plot object? HOT 6
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 ggstatsplot.