我有以下数据集:
## 'data.frame': 2 obs. of 3 variables:
## $ Var1 : Factor w/ 2 levels "correct","incorrect": 1 2
## $ Freq : num 84 16
## $ text_bars: chr "84%" "16%"然后我创建了一个ggplot对象。
z <- ggplot(results_graph, aes(Var1, Freq)) +
geom_bar(position="dodge",stat="identity", fill = "deepskyblue4") +
#coord_flip() +
theme(legend.title=element_blank()) +
ggtitle(expression(atop(bold("Percent of correct vs. incorrect numbers"),
atop(italic("test_test"), "")))) 此图运行正常。但是,如果我尝试这样做
ggplotly(z)我得到以下错误:
Error in unique.default(proposed[[attr]]): unimplemented type 'expression' in 'HashTablesetup' Calls: <Anonymous> ... verify)attr -> structure -> uniaue -> uniaue.default In addition: Warning message: In instance$preRenderHook(instance): It seems your data is too big for client-side DataTables. 有什么线索可能是问题所在吗?
https://stackoverflow.com/questions/43800648
复制相似问题