R读xlsx文件与ggplot2 qplot总结
R读取Excel2007 的 .xlsx 文件
- 需要的包:xlsxjars、rJava,xlsx
- 需注意问题:在RStudio中,R的运行环境选择32为版本,目的与rJava兼容。步骤为Tools–>Global Options–>General–>R version
- 读取方法:
workbook<-"E:/JIAyx/Data/Research/fraction_JJJ/fraction_JJJ/vld_ldsp/accuracy_LSI.xlsx"
LSIdataframe <- read.xlsx(workbook,1) # 1 代表第一个sheet
ggplot的gplot
具体操作详见Hadle Wickham 的《ggplot2 Elegant Graphics for Data Analysis》
- qplot参数
qplot(x, y