Comments (5)
Updated for new syntax (and currently doesn't work right):
mtcars %>% ggvis(y = ~mpg) %>%
layer_points(x = prop(quote(disp), scale = "xdisp")) %>%
layer_points (x = prop(quote(wt), scale = "xwt")) %>%
set_dscale("x", "numeric", name = "xdisp") %>%
set_dscale("x", "numeric", name = "xwt") %>%
add_guide_axis("x", "xdisp", orient = "bottom") %>%
add_guide_axis("x", "xwt", orient = "bottom")
from ggvis.
Another update
mtcars %>% ggvis(y = ~mpg) %>%
layer_points(x = prop(quote(disp), scale = "xdisp")) %>%
layer_points(x = prop(quote(wt), scale = "xwt")) %>%
scale_numeric("x", name = "xdisp") %>%
scale_numeric("x", name = "xwt") %>%
add_guide_axis("x", "xdisp", orient = "bottom") %>%
add_guide_axis("x", "xwt", orient = "bottom")
from ggvis.
This is partially fixed in 9b1ceb3. It requires a richer conceptual model which distinguishes between visual properties (x, y, fill, opacity), scale names ("x", "y", "fill", but also arbitrary strings like "xdisp", "xwt"), and props ("x", "y", "x2", "y2", "fillOpacity").
Now this works:
mtcars %>% ggvis(y = ~mpg) %>%
layer_points(x = prop(quote(disp), scale = "xdisp")) %>%
layer_points(x = prop(quote(wt), scale = "xwt"))
However, it doesn't yet automatically generate axes. I'm not sure if auto-axes are desirable or not in this situation.
from ggvis.
One approach would be to keep a counter of (e.g.) the x scales, and then add a offset property set to 20 * (i - 1)
(we also need a similar technique for legends)
from ggvis.
Fixed in #180.
from ggvis.
Related Issues (20)
- Takes too long than ggplot2 to handle big data HOT 1
- legends are not seperated
- layer_histograms not working w/o a stack = FALSE argument HOT 1
- ggvis state of development HOT 9
- add_tooltip does not work with layer_lines
- handle_brush: Warning: `rbind_all()` is deprecated. Please use `bind_rows()` instead.
- no applicable method for 'group_by_' applied to an object of class "ggvis" HOT 3
- Arc resizing doesn't seem to be working.
- layer_ribbons does not work as expected HOT 1
- wrong alignment in layer_boxplots when using a factor
- layer_bars does not work if `x` and `y` are not initially specified in `ggvis` call HOT 1
- Odd behaviour with add_tooltip if a ggvis is bound reactively
- closed.
- basic example ggvis does not work in R3.6.3/4.0.0 HOT 13
- ggvis
- ggvis erros from deprecated dplyr function HOT 9
- remove lazyeval implementations for dplyr verbs HOT 2
- Release ggvis 0.4.7
- I used the ggvis package to draw a circle, but the result was an ellipse. How to draw a circle?
- Release ggvis 0.4.9
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 ggvis.