当前位置: 动力学知识库 > 问答 > 编程问答 >

r - How visualize tbl_sql data using ggplot2?

问题描述:

I'm getting the error, ggplot2 does not know how to deal with data of class tbl_sqlite/tbl_sql/tbl_lazy/tbl. Does this mean I need to reduce the size of my data or convert it to another format before I can plot it?

网友答案:

dplyr holds off on actually collecting the data into r until it is explicitly told to. When using dplyr to query a database, be sure to use collect at the end of the chain to pull the query result into r as a data frame.

分享给朋友:
您可能感兴趣的文章:
随机阅读: