问题描述
这是我用来创建网络的代码。希望在形状图上绘制此网络并使用图层比例放大。但是,我不断收到错误消息。
**subnet %>% ggraph(layout = "manual",x = lon,y = lat) +
geom_edge_fan( alpha=0.1,arrow = arrow(type="closed",angle = 5)) +
geom_node_point(aes(color = between,size = degree)) +
geom_node_text(aes(label = str_sub(name,1,10)),repel = T) +
theme_graph()
g <- last_plot()
l <- layer_scales(g)**
错误:
Error in UseMethod("ggplot_build") :
no applicable method for 'ggplot_build' applied to an object of class
"c('plotly','htmlwidget')"
有谁知道如何解决这个问题?我曾尝试使用 subplot,但仍然出现相同的错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)