tests/negative.R

library(ggplotly)
iplot <- ggplot(iris)+
  geom_point(aes(Petal.Width, Sepal.Width))
L <- gg2list(iplot)
m <- L[[1]]$marker
if(is.null(m)){
  stop("no marker")
}
if(!is.null(m$size)){
  stop("size found")
}
tdhock/ggplotly documentation built on May 31, 2019, 7:36 a.m.