运维
R绘图 标签描述

一、reshape2简介 reshape2是由HadleyWickham编写的R包,可以轻松地在宽格式(wide-format)和长格式(long-format)之间转换数据。 reshape2R包主要有两个主要的功能:melt和cast melt:将wide-format数据“熔化”成long-format数据; cast:获取long-format数据“重铸”成wide-format数据。 这两个命名十分形象,方便记忆,你可以想象成你在处理金属。当你熔化金属成液体滴下时,金属会被拉长(long-format)。如果你把金属它铸成一个模子,它就会变宽(wide-format)。 二、什...