Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Using ggplotly on a ggplot2 graph does not work with boxplot variable width or outliers shape change

$
0
0

When I use ggplotly on a ggplot2 graph, some features of ggplot2 are reset.

Code example:

db <- iris

# Changing the N in one of the categories for the example:
db$Sepal.Length[1:40] <- NA

p <- db %>% ggplot(aes(Species, Sepal.Length)) +
geom_boxplot(varwidth = TRUE, outlier.shape = NA)

p

Picture 1

When using ggplotly(p) the varwidth option does not work, and the outlier shape of a circle returns. Is this an inherent quality of ggplolty? If so, how do I get these options in ggplotl2?

Picture 2

Thanks!


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>