列表 第页
问 如何结合不同的地块(GGPLOT2),具有不同的Y轴和不同情节的高度,但仍保留对齐? How do you combine separate plots (ggplot2), with different y-axis and different plot heights, yet retain alignm...阅读全文
我在使用 ggplot 周围的 ggplotly 阻止 y 轴文本与刻度重叠时遇到问题.我怎样才能解决这个问题?我试过以下代码:set.seed(395)df1...阅读全文
我想在 plotly 中部分禁用悬停文本,将其限制为 ggplot 中的一个数据框或 geom.在下面的情况下,我只想将鼠标悬停在城市"而不是地图轮廓上.我在 Python 中看到了一个解决方案,但不是 R.我将如何控制图像大小以保持地图尺寸正确?https://plot.ly/ggplot2/interactive-...阅读全文
我正在使用 R 编程语言.通常,当我制作绘图时,我使用的是 ggplot2 库,并且 aes() 选项可用于标记 x 轴并添加标题.但是这一次,我制作的图不是 ggplot2 对象,因此不能以相同的方式标记:I am working with the R programming language. Normally...阅读全文
是否可以将 ggplotly 和 ggplot 拼凑在一起?Is it possible to combine a ggplotly and a ggplot with patchwork? 这会并排显示两个图library(ggplot2)library(plotly)library(patchwork)a...阅读全文
我遇到了这个问题中描述的相同问题:I had the same issue described in this question:R:ggplot 和 plotly 轴边距不会改变但是当我实施解决方案时,出现以下错误:but when I implemented the solution, I got the...阅读全文
这是为 这不能按预期工作 - 索引不再匹配:f(ggplot(myData, aes(x=x, y=y)) + geom_point(aes(text=label, color=category)))情节对象不同,似乎 pointNumber 不再保存所有点的绝对索引,而是(颜色)分组内的索引.关于如何调整示例使其适用...阅读全文
我希望在地图上获得这种渐变颜色:I am looking to get this gradient colors on the map: ramp <- colorRamp(c("royalblue4", "white"))ramp.list <- rgb( ramp(seq(0, 1, length = 15)...阅读全文
我想在 plotly 中使用 ggplot2 构面,但遇到了 y 轴标签显示 y 轴范围值而不是刻度文本的问题.我可以在 plotly 对象中更改什么(使用 plotly_build)以使其正确渲染.我真的很想在 ggplots 上的闪亮应用程序中利用 plotly 的悬停功能.我发现了一些与情节相关的其他问题,但大多...阅读全文
I tried to use the plotly package, but it is not working in my case at all. The ggplot package is working for 2D plots but it is giving an error when adding one...阅读全文
I am trying to convert a ggplot object to plotly and show it in a shiny application. But I encountered an error "no applicable method for 'plotly_build' applied...阅读全文