Comments (2)
Here's a real world example I've encountered. How could one style errorbars and scatters differently with the current interface? I don't think it's possible?
function _bootstrapanalysis(x, ys; summary = mean, n = 1000, low = 0.025, high = 0.975)
bootstrapped_summaries = [
summary(sample(ys, length(ys); replace = true))
for _ in 1:n
]
mu = mean(bootstrapped_summaries)
qs = quantile(bootstrapped_summaries, [low, high])
lo_hi = (qs .- mu) .* [-1, 1]
style(x, mu, lo_hi...) * spec(Errorbars) +
style(x, [mu]) * spec(Scatter)
end
bootstrapanalysis = AlgebraOfGraphics.Analysis(_bootstrapanalysis)
from algebraofgraphics.jl.
Yes, I have the same issue with the GLM analyses, because they give both a line and an error band object.
It's currently not possible. Do you have suggestions for an API? I was thinking some sort of delta functions, like delta(Scatter)
that would only select the scatter component of your plot, but it's still a bit fuzzy in my head.
from algebraofgraphics.jl.
Related Issues (20)
- Redundant blank facet when drawing 3D scatter plots with layout
- `stack` and `color` legend are in reverse order
- Native support for `Makie.DataInspector` HOT 3
- Accept a uer-defined domain of variable
- Faceting with empty panels is broken for time series
- AlgebraOfGraphics.density() error message: "LoadError: Tuple field type cannot be Union{}." in Julia 1.10 HOT 6
- LinesFillx
- Make the `color = dims(1)` correspond to the `mapping` for wide data HOT 1
- Title position when changing aspect for multiple-columns plot
- Density force the same xaxis on wide data plots with multiple variable
- Can't map data to `alpha` values HOT 1
- Smoothing error in Julia 1.10 HOT 1
- [FR] Errorbars
- Ignore missing values HOT 9
- Colorbar shows wrong values when using `Contourf`, with `colorrange` or `levels`
- AoG doesn't respect the `levels` of a categorical vector when transformation is applied
- `PolarAxis` not supported HOT 1
- Documentation Link on JuliaHub is Wrong
- `density(; datalimits)` expects `datalimits` to be a 1-tuple of a 2-tuple instead of just a 2-tuple
- `linesfill` weird behavior in the presence of NaNs
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 algebraofgraphics.jl.