We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 618456d commit db1da93Copy full SHA for db1da93
R/ggplotly.R
@@ -310,13 +310,13 @@ gg2list <- function(p){
310
## (trace.order.list is only used for type=category).
311
title.text <- e(s("axis.title.%s"))
312
ax.list$titlefont <- theme2font(title.text)
313
- ax.list$type <- if(misc$is.continuous[[xy]]){
+ ax.list$type <- if (misc$is.continuous[[xy]]){
314
"linear"
315
- }else if(misc$is.discrete[[xy]]){
+ } else if (misc$is.discrete[[xy]]){
316
"category"
317
- }else if(misc$is.date[[xy]] || misc$is.datetime[[xy]]){
+ } else if (misc$is.date[[xy]] || misc$is.datetime[[xy]]){
318
"date"
319
- }else{
+ } else {
320
stop("unrecognized data type for ", xy, " axis")
321
}
322
0 commit comments