R script – Circadian Rhythm

Many students spend hours making cartoon graphs of circadian rhythms. Recently I had a request for an R script to make a cartoon of a circadian rhythm modelled on a sine curve.

See the attached file for a quick R script for modelling a circadian rhythm of a heart QT interval rhythm – feel free to modify as you see fit.

I have added in a few explanations for placing text and lines on an R graph for those not familiar with modifying base R graphs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s