簡體   English   中英

使用facet_trelliscope而不定義軸限制

[英]Using facet_trelliscope without defining axis limits

使用facet_trelliscopetrelliscopejs可以正常工作:

library(trelliscopejs)
library(ggplot2)

x <- 1:10
y <- 1:10
group <- rep(c("A","B"),5)

df <- data.frame(group, x, y)

ggplot(df, aes(x, y)) + geom_point() + 
  xlim(0, 10) + ylim(0, 10) +
  facet_trelliscope(~group)

但這不是:

ggplot(df, aes(x, y)) + geom_point() + 
  facet_trelliscope(~group)

它拋出此錯誤:

Error in scale_fn() : could not find function "scale_fn"

我的問題是,是否始終需要定義facet_trelliscope的軸限制?

謝謝兩個,的確是包錯誤。 如果以后有人看到此錯誤,請刪除並重新安裝ggp​​lot2。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM