私が異常値を示してdoesntのRでplotly箱ひげ図を作成しようとしています、と私はplotlyの公式ページでこのリンクを見つけた: https://plot.ly/ggplot2/box-plots/#outliers箱ひげ図から外れ値を削除し、plotly
library(plotly)
set.seed(123)
df <- diamonds[sample(1:nrow(diamonds), size = 1000),]
p <- ggplot(df, aes(cut, price, fill = cut)) +
geom_boxplot(outlier.shape = NA) +
ggtitle("Ignore outliers in ggplot2")
# Need to modify the plotly object and make outlier points have opacity equal
to 0
p <- plotly_build(p)
p$data <- lapply(p$data, FUN = function(x){
x$marker = list(opacity = 0)
return(x)
})
# Create a shareable link to your chart
# Set up API credentials: https://plot.ly/r/getting-started
chart_link = plotly_POST(p, filename="geom_boxplot/outliers")
chart_link
問題があることです自分のウェブページや私のコンソールでは、異常値はまだ表示されています。 これは何らかのバグですか?
として、バグはおそらく固定されます。 'geom_boxplot(outlier.shape = NA)'は、外れ値のないボックスプロットを生成します。 – Ufos