我知道在ggplot2程序包中有diamonds这个数据集,我也安装了ggplot2这个程序包,并且,我使用 data(package = .packages(all.available = TRUE))这个命令也成功地显示:
Data sets in package ‘ggplot2’:
diamonds Prices of 50,000 round cut diamonds
economics US economic time series
midwest Demographic information of midwest counties
movies Movie information and user ratings from
可是,是该如何查看或者调用diamonds这个数据集呢?
我曾尝试在R提示符下直接输入diamonds,但提示:“错误: 找不到对象'diamonds'