我正在尝试使用sigmajs库的sg_export_svg函数从RStudio导出图形。代码运行没有错误,但图形未导出到我的目录中。任何帮助表示赞赏。谢谢!
nodes_dyn <- sg_get_layout(nodes_dyn, edge_dyn)
nodes_dyn <- sg_get_cluster(
nodes_dyn,
edge_dyn,
colors = c(
"#0084b4",
"#00aced",
"#1dcaff",
"#c0deed",
"#32CD32"
)
)
sigmajs() %>%
sg_add_nodes(nodes_dyn, start, id, label, size, color, cumsum = FALSE) %>%
sg_add_edges(edge_dyn, created_at, id, source, target, cumsum = FALSE) %>%
sg_settings(
edgeColor = "default",
defaultEdgeColor = "#d3d3d3"
) %>% sg_export_svg(download = TRUE, file = "trial.svg", labels = TRUE) %>%
sg_button("export_svg", "download")
答案 0 :(得分:0)
尝试POST test/_search
{
"query": {
"bool": {
"should": [
{
"match_all": {}
},
{
"nested": {
"path": "fields",
"query": {
"match": {
"fields.name": "bbb"
}
},
"inner_hits": {}
}
}
]
}
}
}
或重新启动R程序。确保使用dev.off ()