Creating a loop in r for multiple box plots
<p>I have designed an experiment to see how serum markers change with time since eating a meal. I have a data frame consisting of 72 observations and 23o variables this is called BreakfastM.</p>

<p>There are 229 variables which are serum markers and 1 which is timepoint. The observations are different samples</p>

<p>Iam looking for trends in the data of how the serum markers (ie cholestrol) change with the timepoint. I have created a boxplot which shows nicely the trends in a particular serum marker in relation to timepoint</p>

<p>This is the code I used</p>

<pre><code>boxplot((BreakfastM$Variable~BreakfastM$Timepoint))
</code></pre>

<p>Is there a quick way to test all the variables in the dataframe against the timepoint by writing a loop code in R?</p>