我在 R 中用 plotly 创建了一个散点图。现在我想在散点图旁边绘制一个带有不同数据的箱线图。我想为此使用。
结果应如下所示。有人可以帮我吗,我不知道该怎么做。到目前为止我的代码是
plot_ly(ds, x = ~x, y = ~y , mode = "markers", name = "Clusters", opacity = point.opacity,
text = ds$id,
hoverinfo = "text",
marker = list(symbol = point.symbol, color = ~color, size = point.size,
line = list(color = "#262626", width = point.linewidth, opacity = point.lineopacity)),
showlegend = F)