Comments (7)
Another option from JJ. Like Option 4 + 5: :=
toggles the standard behaviour:
- scaled expr:
x = ~mpg
- scaled cnst:
x := 1
- scaled rctv:
x := input_slider()
- unscld expr:
fill := ~col
- unscld cnst:
fill = "red"
- unscld rctv:
fill = input_slider()
- prop obj :
y = prop(...)
That way the standard operations (scaled expressions and unscaled constants) just work
from ggvis.
Option 1.6
- scaled expr:
x ~ mpg
- scaled cnst:
x ~ I(1)
- scaled rctv:
x ~ input_slider()
- unscld expr:
fill = col
- unscld cnst:
fill = I("red")
- unscld rctv:
fill = input_slider()
- prop obj :
y = prop(...)
I personally really like I()
to distinguish between either expr vs. cnst, or scaled vs. unscaled.
from ggvis.
@jcheng5 unfortunately that's really hard to make work because of the x ~ input_slider()
- how do you tell if the rhs of the formula should be evaluated or unevaluated?
from ggvis.
Oh, so is Option 1.5 equally hard to make work? That's what I was basing it off of.
from ggvis.
Oh n/m I get it now.
from ggvis.
Is option 3 workable?
from ggvis.
@jcheng5 option 3 has the same problem - I can make it work with some heuristics, but it fail 1% of the time with weird error messages. Option 1.5 is easier to make work because it uses quote as well as ~.
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.