dimanche 31 mai 2020

Generating numbers from given mean, median, SD, maximum and minimum values using R

I have a list of temperature data which shows mean, median, SD, maximum , minimum and IQR of temperatures for different months. I wanted to generate a set of numbers using the above given values. is it possible in R ?

The smaple data :

a <- tribble( ~"Month",~"year", ~"mean", ~"SD", ~"Min", ~"Q1", ~"Med", ~"Q3", ~"Max", "July", 2018, 1.13, 0.07, 0.98, 1.09, 1.13, 1.18, 1.27, "August", 2018, 1.16, 0.08, 1.04, 1.10, 1.16, 1.22 ,1.39, "September", 2018, 1.08, 0.08, 0.97, 1.00, 1.08, 1.12, 1.29, "October", 2018, 1.16, 0.11, 0.94, 1.07, 1.16, 1.23, 1.42, "November", 2018, 1.48, 0.25, 1.02, 1.34, 1.48, 1.60, 1.93, "December", 2018, 1.82, 0.17,1.52, 1.69, 1.82, 1.92, 2.20, "January", 2019, 1.91, 0.19, 1.56, 1.76, 1.89, 2.02, 2.26, "February", 2019, 1.59, 0.17, 1.33, 1.44, 1.59, 1.77, 1.90, "March", 2019, 1.35, 0.18, 1.10, 1.20, 1.33, 1.45, 1.67, "April", 2019, 1.34, 0.10, 1.16, 1.27, 1.34, 1.41, 1.47, "May", 2019 ,1.31, 0.07, 1.14, 1.24, 1.31, 1.35, 1.43, "June", 2019, 1.31, 0.06, 1.19, 1.26, 1.31, 1.35,1.43 )

what i actually want is some boxplot like this as an output from it : -fg




Aucun commentaire:

Enregistrer un commentaire