R - plot human body in 2d [closed]

浪尽此生 提交于 2019-11-30 11:18:26

问题


I was wondering if there is a package to plot a 2D representation of the outline of a human body? Being in 2D, plotting either the front/back/side at any one time would presumably be the easiest way to accomplish this. The output would be something similar to this (though this is not the best use of such a diagram):

Source: http://emj.bmj.com/content/20/5/434.full

Ideally, plotting a subset of data as is done for the world with map(regions="Australia") would be possible in the form body.map(regions="left.hand"). In that respect, would it be appropriate to base such a model on the maps package?


回答1:


I just had a look on clker.com for vector body graphics, and if you search for 'body' you see a lot of possible SVG files you could read in and plot.

Then I spotted this one:

http://www.clker.com/clipart-29915.html

which also links to a lot of 'Derived cliparts' showing similar bodies with other parts outlines. It only seems to be the upper torso, but its a nicely-layered SVG file where all the bits could be drawable individually.

There's also plenty of outline body figures (including, I just found, the male figure that went on the Voyager or Pioneer space probe plaques!) and skeletons, including some very well labelled skeletons impressed.

Organising all this into some kind of "body.map" function should be possible - read in from SVG file, select components, plot - but requires some careful thinking and more specification according to requirements.



来源:https://stackoverflow.com/questions/10670751/r-plot-human-body-in-2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!