hcistats:rgraphics

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | |||

hcistats:rgraphics [2014/03/29 01:16] Koji Yatani [Graphics in R] |
hcistats:rgraphics [2014/03/29 02:12] (current) Koji Yatani |
||
---|---|---|---|

Line 2: | Line 2: | ||

You can produce different kinds of graphs and visualizations in R (you can find creative examples [[http://bm2.genes.nig.ac.jp/RGM2/index.php?clear=all|here]]). However, I mostly use Excel to produce graphs because it is easier to use. But you may want to use some basic visualizations to examine the data. Here are some ways to create basic graphs in R. For histograms and Q-Q plots, please see [[HCIstats:DataTransformation|a page for how to check the normality of data]]. | You can produce different kinds of graphs and visualizations in R (you can find creative examples [[http://bm2.genes.nig.ac.jp/RGM2/index.php?clear=all|here]]). However, I mostly use Excel to produce graphs because it is easier to use. But you may want to use some basic visualizations to examine the data. Here are some ways to create basic graphs in R. For histograms and Q-Q plots, please see [[HCIstats:DataTransformation|a page for how to check the normality of data]]. | ||

+ | ---- | ||

=====Bar plot===== | =====Bar plot===== | ||

Line 102: | Line 103: | ||

//type// represents the kind of graphs you want to create. If you do //type="p"//, it will be a dot plot. If you do //type="l"//, it will be a line plot without points. //pch// means the character to be used for plotting. If you specify an integer, it will be a shape (//e.g.//, a square, a triangle, or a circle). //col// means the color to be used for each group. There are other options for //matplot()//, and you can see the help by doing //?matplot//. | //type// represents the kind of graphs you want to create. If you do //type="p"//, it will be a dot plot. If you do //type="l"//, it will be a line plot without points. //pch// means the character to be used for plotting. If you specify an integer, it will be a shape (//e.g.//, a square, a triangle, or a circle). //col// means the color to be used for each group. There are other options for //matplot()//, and you can see the help by doing //?matplot//. | ||

+ | |||

+ | \\ | ||

+ | ~~DISCUSSION:open~~ |

hcistats/rgraphics.txt ยท Last modified: 2014/03/29 02:12 by Koji Yatani