File: test-thematic.R

package info (click to toggle)
r-cran-plotly 4.9.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,616 kB
  • sloc: javascript: 137,775; sh: 20; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# context("thematic")
# 
# test_that("ggplotly() works with thematic", {
#   skip_if_not_installed("thematic")
#   library(thematic)
#   thematic_on(bg = "black", fg = "white", accent = "purple")
#   on.exit(thematic_off(), add = TRUE)
#   expect_doppelganger_built(
#     qplot(1:10, 1:10), 
#     "thematic-geom-and-theme-defaults"
#   )
#   expect_doppelganger_built(
#     qplot(1:10, 1:10, color = 1:10), 
#     "thematic-sequential"
#   )
#   expect_doppelganger_built(
#     ggplot(economics_long, aes(date, value01, color = variable)) + geom_line(), 
#     "thematic-qualitative"
#   )
# })