R中的点符号 [英] Point symbols in R

查看:183
本文介绍了R中的点符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

points函数中有25个由'pch'参数定义的符号。

There are 25 symbols defined by 'pch' paramter in the points function.

我如何绘制超过这25个符号

How can I draw more than these 25 symbols

谢谢

推荐答案

您可以使用以下代码查看给定字体的所有选项:

You can see all the options for a given font using code like:

plot( 0:15, 0:15, type='n' )
points( (0:255)%% 16, (0:255) %/% 16, pch=0:255, font=5 )

将font =更改为不同选项的不同数字。使用符号功能还有更多选择。如果您想要更多,请查看TeachingDemos软件包中的my.symbols函数(我是 my.symbols 和大多数TeachingDemos软件包的作者)。已经有几种符号可用,并且它提供了创建自己的自定义符号的选项,因此确实没有限制。

Change the font= to different numbers for different options. There are a couple more options using the symbols function. If you want even more then check out the my.symbols function in the TeachingDemos package (I am the author of my.symbols and most of the TeachingDemos package). There are several symbols available already and it gives an option for creating your own custom symbols, so there really is no limit.

这篇关于R中的点符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆