User Tools

Site Tools


en:customized_functions:hist.dnorm

Differences

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

Link to this comparison view

en:customized_functions:hist.dnorm [2017/03/06 10:10]
David Zelený created
en:customized_functions:hist.dnorm [2017/03/06 10:17]
David Zelený
Line 12: Line 12:
 </file> </file>
  
-To modify color and thickness of the normal distribution curve, use arguments ''lines.col'' and ''lines.lwd''Function accepts most other arguments for ''hist'', with some limitations.+To modify color and thickness of the normal distribution curve, use arguments ''lines.col'' and ''lines.lwd''The function accepts most other arguments for ''hist'', with some limitations.
  
 Example of use (using environmental data from the dataset [[en:data:wetlands|Vegetation of Carpathian wetlands]]): Example of use (using environmental data from the dataset [[en:data:wetlands|Vegetation of Carpathian wetlands]]):
Line 18: Line 18:
 source ('http://www.davidzeleny.net/anadat-r/doku.php/en:customized_functions:hist.dnorm?do=export_code&codeblock=0') # reads the function definition from above source ('http://www.davidzeleny.net/anadat-r/doku.php/en:customized_functions:hist.dnorm?do=export_code&codeblock=0') # reads the function definition from above
 chem <- read.delim ('http://www.davidzeleny.net/anadat-r/data-download/chemistry.txt', row.names = 1) # reads the ''chem'' dataset chem <- read.delim ('http://www.davidzeleny.net/anadat-r/data-download/chemistry.txt', row.names = 1) # reads the ''chem'' dataset
-hist.dnorm (chem[,-15]cex.labels 1)+hist.dnorm (chem$pHxlab = 'pH'main 'Histogram of pH')
 </code> </code>
  
-{{:obrazky:pairs2_example.png?direct&700|}}+{{:obrazky:hist.dnorm_example.png?direct&700|}}
  
-Note that the package ''car'' contains the function ''scatterplotMatrix'', which is doing something similar (and perhaps could be also further customized). 
en/customized_functions/hist.dnorm.txt · Last modified: 2018/03/30 23:04 (external edit)