Usage Arguments Details Examples
1 2 3 4 | f_weibo_app_content(hisID='chenyibo', weibo_content=weibo_content, scale_a=4, scale_b=1,
cutday='2012-04-01', equal_length=F,
sogou_file='I:\0_yibo\2_bigbigdata\2_apply_3_network_analysis\1_weibo\1_微博正文',
mydic=NULL, cnt_words=100)
|
hisID |
用于文件命名 |
weibo_content |
之前抓取到的微博数据 |
scale_a,scale_b |
词云的参数,调节字体大小 |
cutday |
日期分隔点,用于比较该日期前后的关键词变化 |
equal_length |
是否要求上述分隔点前后的微博数目一致。若取值为T,则会按照最少记录数进行截取。默认为F |
sogou_file |
搜狗词库文件的路径 |
mydic |
自定义词典路径 |
cnt_words |
词云中展示的关键词个数的上限 |
运行完成后,会在工作路径下生成weibo_content_hisID_时间.png文件
1 2 3 4 | load('weibo_saved_content_eeocomcn.RData')
f_weibo_app_content(hisID='eeocomcn', weibo_content, cutday='2013-01-01')
load('weibo_saved_content_chenyibo.RData')
f_weibo_app_content(hisID='chenyibo', weibo_content, cutday='2012-04-01')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.