Winston Chang
8640934410
Move alt parameter after ...
2020-08-31 16:28:43 -05:00
JooYoung Seo
19da003291
Redocumented for alt param
2020-08-18 17:19:45 -04:00
JooYoung Seo
f0765e3d6a
Updated alt param description
2020-08-18 17:05:47 -04:00
JooYoung Seo
ce101843f0
Made alt param reactive
2020-08-18 15:43:04 -04:00
JooYoung Seo
28cffb2e25
Update R/render-plot.R
...
Co-authored-by: Barret Schloerke <barret@rstudio.com >
2020-08-18 14:24:08 -04:00
JooYoung Seo
d2d169fea3
Update R/render-plot.R
...
Co-authored-by: Barret Schloerke <barret@rstudio.com >
2020-08-18 14:23:17 -04:00
JooYoung Seo
a5eb1b15d2
Added alt param
2020-08-16 16:11:18 -04:00
Carson
391bbaa73b
Do the same when replaying plot
2020-07-14 13:45:34 -05:00
Carson
fed96c0e45
Include the pixelratio when setting showtext dpi
2020-07-14 13:45:34 -05:00
Carson
5d4855f86c
comments
2020-05-05 12:26:58 -05:00
Carson
210792397d
code review with Winston
2020-05-01 16:20:15 -05:00
Carson
dd1c653365
Rollback the custom device arg (may come later) in favor of a shiny.useragg option
2020-04-30 17:50:19 -05:00
Carson
a05f713e26
code review with Barret
2020-04-30 17:50:19 -05:00
Carson
dfb492493c
Provide a device argument to renderPlot() and plotPNG()
2020-04-30 17:50:19 -05:00
Carson
89d6a3d91a
User-supplied bg to renderPlot should take 1st priority
2020-04-30 17:50:19 -05:00
Carson
393d4163c8
Auto-theming interface will come from thematic
2020-04-30 17:50:19 -05:00
Carson
5855aa2689
First pass at an auto-theming interface
2020-04-30 17:50:19 -05:00
Carson
4e59f55f11
wip font support
2020-04-30 17:50:19 -05:00
Carson
b269487a47
port auto-theming logic to new thematic package
2020-04-30 17:50:19 -05:00
Carson
dce4028786
sequential colorscale now mixes fg/bg with accent (for the endpoints)
2020-04-30 17:50:19 -05:00
Carson
819ad4c770
newpage should always come before ggplot_build
2020-04-30 17:50:19 -05:00
Carson
b10b6d4833
default to bg='white', not transparent
2020-04-30 17:50:19 -05:00
Carson
a3d224beaf
suggest scales; other R CMD check things
2020-04-30 17:50:19 -05:00
Carson
4c8ec8befe
allow autoTheme options to be reactive
2020-04-30 17:50:19 -05:00
Carson
0692334a27
cleanup
2020-04-30 17:50:19 -05:00
Carson
be912cf2ce
Set default scales via plot_env for old ggplot2 and options for new ggplot2
2020-04-30 17:50:19 -05:00
Carson
f942c088ec
mix colors using scales::colour_ramp
2020-04-30 17:50:19 -05:00
Carson
330da2dcbb
code review feedback; introduce autoThemeOptions()
2020-04-30 17:50:19 -05:00
Joe Cheng
afad0395ff
Use htmltools::parseCssColors
2020-04-30 17:50:19 -05:00
Carson
ecd72f1bc0
Add sequential colorscale for ggplot2 based on the accent color
...
Also, some R CMD check fixes and other cleanup
2020-04-30 17:50:19 -05:00
Carson
867daeead7
Add accent (link) color and qualitative color palettes
...
Also, improved approach to adjusting various defaults based on fg/bg/accent
2020-04-30 17:50:19 -05:00
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