Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.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
Html 在jupyterlab/jupyternotebooks中运行highcharter_Html_R Highcharter_Jupyter Lab - Fatal编程技术网

Html 在jupyterlab/jupyternotebooks中运行highcharter

Html 在jupyterlab/jupyternotebooks中运行highcharter,html,r-highcharter,jupyter-lab,Html,R Highcharter,Jupyter Lab,我试图在jupyterlab中呈现一些highcharter图表 data(diamonds, economics_long, mpg, package = "ggplot2") library(dplyr) library(highcharter) hchart(mpg, "scatter", hcaes(x = displ, y = hwy, group = class)) 要使plotlywrapper工作,您需要安装一个扩展。我可以想象,类似的东西必须为highcharter 错误消息

我试图在jupyterlab中呈现一些
highcharter
图表

data(diamonds, economics_long, mpg, package = "ggplot2")
library(dplyr)
library(highcharter)
hchart(mpg, "scatter", hcaes(x = displ, y = hwy, group = class))
要使
plotlywrapper
工作,您需要安装一个扩展。我可以想象,类似的东西必须为
highcharter

错误消息:

HTML widgets cannot be represented in plain text (need html)

数据(钻石、经济、mpg、package=“ggplot2”)
图书馆(dplyr)
图书馆(高级特许)
x=hchart(mpg,“散射”,HCAE(x=displ,y=hwy,group=class))%>%
hc_尺寸(宽度=800,高度=400)
saveWidget(x,'demox.html',selfcontained=FALSE)
显示html(“”)
图像和屏幕截图可以很好地添加到帖子中,但请确保没有它们的帖子仍然清晰有用。如果您发布代码或错误消息的图像,请确保您也将实际代码/消息复制粘贴或直接键入到帖子中。
data(diamonds, economics_long, mpg, package = "ggplot2")
library(dplyr)
library(highcharter)
x=hchart(mpg, "scatter", hcaes(x = displ, y = hwy, group = class)) %>%
hc_size(width=800, height = 400)
saveWidget(x, 'demox.html', selfcontained = FALSE)
display_html('<iframe src="demox.html", width = 900, height = 500 ></iframe>')