Hi,
I recently started learning R, mainly for the generation of nice plots from scientific results (biology).
I try to create a scatter plot for some enzyme activities. I could find some good online tutorial on how to generate plots but all tutorials I could find deal with 2 variables, which is quite easy to manage.
In my case, I have a dataset of 25 variables that I would like to plot.
I generated a small set of data.
I measured the activity of 5 enzymes every 5 seconds during 60 seconds and I would like to generate a scatterplot with time as X axis and activity for the 5 different enzymes on y-axis on a single plot
What is the best method to work on a large set of variables? Is there a way to say, plot column 1 (Time) against column 2 to 6 (Enzyme1 to 5) without using the full name of each column?
structure(list(`Time (sec)` = c(0, 5, 10, 15, 20, 25, 30, 35,
40, 45, 50, 55, 60), Enzyme1 = c(0, 2, 4, 8, 16, 32, 64, 128,
128, 128, 128, 128, 128), Enzyme2 = c(0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12), Enzyme3 = c(0, 10, 20, 30, 40, 50, 60, 70,
80, 90, 100, 110, 120), Enzyme4 = c(0, 0.125, 0.25, 0.5, 0.75,
1, 1.25, 2.5, 5, 10, 20, 40, 60), Enzyme5 = c(0, 5, 10, 15, 20,
25, 30, 35, 40, 45, 50, 55, 60)), row.names = c(NA, -13L), class = c("tbl_df",
"tbl", "data.frame"))
#> Time (sec) Enzyme1 Enzyme2 Enzyme3 Enzyme4 Enzyme5
#> 1 0 0 0 0 0.000 0
#> 2 5 2 1 10 0.125 5
#> 3 10 4 2 20 0.250 10
#> 4 15 8 3 30 0.500 15
#> 5 20 16 4 40 0.750 20
#> 6 25 32 5 50 1.000 25
#> 7 30 64 6 60 1.250 30
#> 8 35 128 7 70 2.500 35
#> 9 40 128 8 80 5.000 40
#> 10 45 128 9 90 10.000 45
#> 11 50 128 10 100 20.000 50
#> 12 55 128 11 110 40.000 55
#> 13 60 128 12 120 60.000 60
Do not hesitate to contact me if you need additional information.
Thank you in advance,