trestletech
b5ca1d48e0
Add link to renderCachedPlot.
...
Closes #2476
2019-06-14 14:22:49 -05:00
Carson Sievert
57cc44f662
Coordmap info should retain discrete limits ( #2410 )
...
* ggplot2 input brushes should retain discrete range mapping, and be imposed in brushedPoints(), closes #1433
* simplify logic and reduce required storage
* get nearPoints() working as well, cleanup
* only remember scale range if ggplot is facet with a free discrete axis
* Use the scale limits (before the range) since the former is specified, that's what is actually shown on the plot
also, introduce within_brush() helper to consistently handle missing values produced by asNumber()
* also use scale limits in older versions of ggplot2
* DRY
* discrete_mapping -> discrete_limits; better comments
* update test expectation
* a couple unit tests
* update comment to reflect new coordmap data structure
* use unlink() not rm()
* add some tests for specifying scale limits and labels
* Use get_limits() if available
* update news
* better name and comment for new asNumber() argument
2019-05-14 16:34:00 -05:00
Winston Chang
3db5f21d90
Update data structure comment
2018-08-07 15:11:43 -05:00
Winston Chang
3354a47e8a
Add width/height to coordmap instead of using naturalWidth/Height
...
This eliminates the need to use an on load callback.
2018-08-07 14:51:23 -05:00
Winston Chang
1ff6c382bf
Remove unnecessary ggplot2 workaround
2018-08-06 12:51:07 -05:00
Winston Chang
909bfa8c14
Allow plot interaction to handle scaled images
2018-08-06 12:51:07 -05:00
Joe Cheng
c01abdb6a9
Merge branch 'master' into plot-cache
2018-07-26 15:52:11 -07:00
Timothy Mastny
3a73bfb142
changed output coordinate system to "ndc" to account for margin changes
2018-06-21 17:48:16 -05:00
Winston Chang
fd90ff7ff7
Use DiskCache class
2018-06-18 16:25:36 -05:00
Winston Chang
91631cb081
Note bug fix in R
2018-06-18 16:25:35 -05:00
Winston Chang
76b239a6ea
Convert renderCachedPlot to take expr and cacheKeyExpr
2018-06-18 16:25:35 -05:00
Winston Chang
334f233968
Move plot caching code into separate file
2018-06-18 16:25:35 -05:00
Winston Chang
e1f21250b9
Rename plotCache to createCachedPlot
2018-06-18 16:25:35 -05:00
Winston Chang
8d087e4f20
Get output info and auto-size plot cache images
2018-06-18 16:25:35 -05:00
Winston Chang
9e35e8c947
Allow user code to pass width/height/pixelratio
2018-06-18 16:25:35 -05:00
Winston Chang
f98faef024
Document cache scoping and minor code cleanup
2018-06-18 16:25:35 -05:00
Winston Chang
0f9346ead5
Add different scoping levels for plotCache
2018-06-18 16:25:35 -05:00
Winston Chang
fc8118c694
First implementation of plotCache
2018-06-18 16:25:35 -05:00
Winston Chang
07b223dcb0
Fix plot coordmap for devel version of ggplot2. Closes #2016
2018-04-19 11:40:26 -05:00
Joe Cheng
f1e27b6ffb
Fix #1922 : Warning: partial match of 'y' to 'yintercept'
2018-04-19 10:00:24 -05:00
Joe Cheng
432482c5a7
renderPlot's ... args were being dropped
2018-04-12 11:57:32 -07:00
Joe Cheng
e67a8ba369
Fix #1964 : renderPlot cache breaks when width/height throw
...
Fixed by moving the isolate(getDims()) call into the (effectively)
try/catch that does a non-isolated getDims() if an error occurs
2018-02-28 15:40:55 -08:00
Joe Cheng
b1dc3dfca1
Restore label to plotObj reactive
2018-02-09 11:12:46 -08:00
Joe Cheng
881370f284
Remove extraneous comments
2018-02-09 11:12:46 -08:00
Joe Cheng
d35c6002a6
Respect pixelratio (retina) when redrawing cached images
2018-02-09 11:12:45 -08:00
Joe Cheng
f23fc3beaa
Plots were not respecting pixel ratio (retina)
2018-02-09 11:12:45 -08:00
Joe Cheng
7d29df58f1
Support same-tick execution for synchronous outputs
2018-02-09 11:12:45 -08:00
Joe Cheng
20b82fbf77
Cleanup R CMD check
2018-02-09 11:12:45 -08:00
Joe Cheng
c1dc662a40
"promise" package was renamed to "promises"
2018-02-09 11:12:45 -08:00
Joe Cheng
7c845d070b
Sync to changes in promise. run_now aggressively in serviceApp.
2018-02-09 11:12:45 -08:00
Joe Cheng
5e905aa73e
Implement execOnResize
2018-02-09 11:12:45 -08:00
Joe Cheng
e15654f265
Minor renderPlot cleanup
2018-02-09 11:12:45 -08:00
Joe Cheng
c037e69793
Fix ggplot brushing
2018-02-09 11:12:45 -08:00
Joe Cheng
8c935ff44e
Use proper promise:: prefix
2018-02-09 11:12:45 -08:00
Joe Cheng
74bf8b0554
renderPlots works!!! Testing needed.
2018-02-09 11:12:45 -08:00
Joe Cheng
16242e87a1
Some steps toward renderPlot working. Move to promise package instead of system2.5.
2018-02-09 11:11:34 -08:00
Winston Chang
213ee7be13
Quote arguments to do.call() for nicer stack traces. Closes #1851
2017-09-26 14:36:19 -05:00
Winston Chang
36ffebd975
Workaround for NOTE about objects in yet-unreleased version of ggplot2
2017-04-25 15:33:10 -05:00
Winston Chang
92f9f0da9e
Restructure code for clarity
2017-02-09 11:23:13 -06:00
Winston Chang
fe943b5e95
Update plot interaction for ggplot2 > 2.2.1
2017-02-09 11:01:47 -06:00
Winston Chang
3479a4661a
Prepare code for ggplot2 api
2017-02-02 11:12:22 -06:00
Winston Chang
270b8415e8
Add plot interaction support for coord_fixed. Closes #1121
2017-01-16 12:58:58 -05:00
Joe Cheng
f7d7ccfd2c
Fix unqualified links to other packages
...
R-devel warns on this now, causes Travis to fail
2016-12-15 10:35:46 -08:00
Winston Chang
008fe38f10
Add support for coord_flip
2016-09-27 23:07:17 -05:00
Winston Chang
24e8123240
Add plot interaction support for ggplot>2.1.0
2016-09-27 16:02:28 -05:00
Winston Chang
fe85421c7e
Fixes for R CMD check
2016-09-06 14:43:57 -05:00
Winston Chang
7e86e65cce
Make sure displaylist is on for recording/replaying plots
2016-08-30 20:09:45 -05:00
Winston Chang
c4cc5b6dfc
Fix renderPlot's execOnResize logic
...
This was found in #1331 , but the real problem with that issue is that
the mclust::mclust2Dplot function has changed since we wrote the example
app.
2016-08-30 16:37:50 -05:00
Winston Chang
157d1b20c5
Fixes for R CMD check
2016-05-06 15:14:09 -05:00
Winston Chang
91092b8a96
Fix function labels for profiling
2016-05-06 15:03:00 -05:00