cherrypi / Science-Fair_2019

Vernal Pond graphing and data, as well as data analysis.
1 stars 0 forks source link

Generating your multi-row plot #18

Open VCF opened 5 years ago

VCF commented 5 years ago

You expressed an interest in a plot with date along the x-axis, and multiple environmental values (temperature, rainfall, surface area, etc) as aligned "strips" in multiple y-axes.

After melting, you should have a new data frame that looks something like this:

       Date       variable    value
 2018-12-16           Rain       NA
 2018-12-16 TemperatureMax  44.0000
 2018-12-16 TemperatureMin  31.0000
 2018-12-16           Area       NA
 2018-12-17           Rain   0.0000
 2018-12-17 TemperatureMax  41.0000
 2018-12-17 TemperatureMin  34.0000
 2018-12-17           Area 148.0177
 2018-12-18           Rain   0.0000
 2018-12-18 TemperatureMax  37.0000
... etc ...

I was able to generate the plot following an example on StackOverflow. However, I think this is a fairly advanced technique and doubt you have time left to figure it out on your own.

FWIW, the data do look interesting; You've done a good job collecting the underlying information. It's unfortunate that snow cover prevented measurements so often. MultiRow