Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
保存使用ggplot2和facet_网格镜生成的html文件时出现错误消息_Html_R_Ggplot2 - Fatal编程技术网

保存使用ggplot2和facet_网格镜生成的html文件时出现错误消息

保存使用ggplot2和facet_网格镜生成的html文件时出现错误消息,html,r,ggplot2,Html,R,Ggplot2,我正在使用GrilliscopeJS包,试图保存由下面代码生成的html文件,但遇到了一个错误。但是我不知道为什么我会犯这个错误 .getNamespace(pkg)中的错误: 向量分配中的无效类型/长度(符号/0) p <- ggplot(gapminder, aes(year, lifeExp)) + geom_line() + facet_trelliscope(~ country + continent, name = "l

我正在使用GrilliscopeJS包,试图保存由下面代码生成的html文件,但遇到了一个错误。但是我不知道为什么我会犯这个错误

.getNamespace(pkg)中的错误: 向量分配中的无效类型/长度(符号/0)

p <- ggplot(gapminder, aes(year, lifeExp)) +
  geom_line() +
  facet_trelliscope(~ country + continent,
                    name = "lifeExp_by_country",
                    desc = "Life expectancy vs. year per country",
                    nrow = 1, ncol = 2
  )

library(htmlwidgets)

saveWidget(widget=p, file="test.html",selfcontained = FALSE)
p