我是Linux和R的新手.
我在Ubuntu 11.04中安装了R 2.12.今天我尝试安装一个新包,所以我运行了以下命令:
install.packages('XML')
Run Code Online (Sandbox Code Playgroud)
但安装失败并提供以下信息:
* installing *source* package ‘XML’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to …Run Code Online (Sandbox Code Playgroud) 我想创建一张美国地图(可能是热图)来显示各州之间某种特征的频率.我不确定使用什么包或我的数据是否是正确的形式.我的数据在表格中
tf
AB AK AL AN AR AZ CA CO CT DC DE EN FL GA HI IA ID IL IN KS
1 21 31 1 12 56 316 53 31 16 7 1 335 63 11 42 29 73 40 2
Run Code Online (Sandbox Code Playgroud)
在大多数情况下,我的缩写是美国(除了少数加拿大实例).在地图上以图形方式显示此内容的最佳建议方法是什么?
现在我如何获得每种颜色少于50的粒度?
