Carson
a20c3a397e
make sure ggplot_apply_auto_colors always returns a built plot
2020-04-30 17:50:19 -05:00
Carson
a1a22e811f
Report font-family and colors in getCurrentOutputInfo() if .shiny-report-theme class is present
...
Also, rename autocolors to autotheme as we'd like to support fonts and possibly more in the future
Also, wrap ggplot2 default overriding and building logic into one function, so plotly can use it in a self-contained fashion
2020-04-30 17:50:19 -05:00
Joe Cheng
3fbbabd68a
Better autocolors for bars and other geoms that don't have colour; lighter lattice defaults
2020-04-30 17:50:19 -05:00
Joe Cheng
47c1202535
Tweak ggplot2 colors to look closer to defaults
2020-04-30 17:50:19 -05:00
Joe Cheng
83a5feaaa8
More autocolor fixes
...
- Don't set graphical params if fg/bg are not set
- Make maybe_set_palette return the old palette
2020-04-30 17:50:19 -05:00
Joe Cheng
6e767fc71d
More robust un-setting of autocolor params
...
Before this commit, any error would cause the params not to be restored.
If the error was in the initial parameter setting itself (as can occur
with lattice_set_params() at the moment), then not even the graphics
device would be restored, meaning that stopping the app and attempting
to plot would result in graphics being sent to a temp file somewhere
instead of the default graphics device.
2020-04-30 17:50:19 -05:00
Joe Cheng
303f264326
Implement plot.autocolors for cached plots
2020-04-30 17:50:19 -05:00
Carson
f73671845c
Add support for lattice and better default palette() for col scaling
2020-04-30 17:50:19 -05:00
Carson
82c04caf3a
facet strips shouldn't have stroke and fill should be a semi-lighten fg color
2020-04-30 17:50:19 -05:00
Carson
d8080d1336
only assign default for aes that are relevant and non-transparent
2020-04-30 17:50:19 -05:00
Carson
fc09d1c09a
Support a named vector as an override to computed colors
2020-04-30 17:50:19 -05:00
Carson
e9f2e0d7d7
wip
2020-04-30 17:50:19 -05:00
Carson
120baf0a6e
review feedback
2020-03-03 15:34:32 -06:00
Carson
685dc7cc3a
Updates for new grid in r-devel
2020-03-03 15:30:12 -06:00
Hadley Wickham
16fe0019f9
Clarify the three inputs to width/height
2019-08-29 07:30:09 -05:00
trestletech
7fc497eeb8
Auto-generated link conversation, not manually reviewed.
2019-06-19 15:46:13 -05:00
trestletech
ecefdcd951
Convert R to MD
...
Used roxygen2md::roxygen2md(scope="simple")
Not manually reviewed.
2019-06-19 15:28:03 -05:00
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