1 / 9

Graphical display of data and results

Graphical display of data and results . Marek Majdan. Training in essential biostatistics for Public Health Professionals in BiH , Marek Majdan, PhD; marekmajdan@gmail.com. Data distribution plots. Boxplot Q-Q plot Rug plot Histogram.

truong
Download Presentation

Graphical display of data and results

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphical display of data and results Marek Majdan Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  2. Data distribution plots • Boxplot • Q-Q plot • Rug plot • Histogram Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  3. Drawing these plots in R • Boxplot boxplot (variable) • Histogram hist (variable) • Rug plot rug (variable) • Q-Q plot qqplot (variable) Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  4. Categorical variables PIE CHART (displays categories of ONE variable) Function in R: pie (data) Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  5. Categorical variables • BARCHART (displays categories within one variable or categories in a variable categorized by another categorical variable) • Stacked or with bars beside Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  6. Drawing barplots in R • In case of one variable barplot (variable) • In case of a variable divided by a variable first step: put data in a tabular form tab=table (x) or tab=matrix(c(a,b,c,d),ncol=2,byrow=T) second step: barplot (variable or table) Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  7. Line graph • line=c(5,8,9,12,13,5,8,9,11) • plot(lines, type="o“) Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  8. Scatter plot • To display pairs of data • In R: plot(variable x, variable y) Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

  9. General graphical arguments • col =“name of colour” (to get a list of colours put colors() in R) • main=“title”; main title of graph • xlab=“name on x axis” • ylab=“name on y axis” Training in essential biostatistics for Public Health Professionals in BiH, Marek Majdan, PhD; marekmajdan@gmail.com

More Related