基本用法. library(ggplot2). 1. 让样本可重复. set.seed(1410). 1. 在 diamonds 数据集中随机取100个数据 dsmall <- diamonds[sample(nrow(diamonds), 100), ].
確定! 回上一頁