D Dear all, given the following dataframe, I am trying to plot the values for each column and marked overall (coloured) by type (there are three groups, alpha, beta, gamma).
In other words the x axis should display 9 points (x100,x110....,x180) and the y axis range should be from 0 to 2 (each column takes a value from 0 to 2 max).
Each of the resulting three lines should highlight each of the three categorical variables.
Apologies about the format of the dataframe, I have not figured out how to pretty output it yet.
structure(list(Group.1 = c("alpha", "beta", "gamma"), x100 =
c(1.31729175522923,
0.985278656706214, 0.156200287397951), x110 = c(1.54471416538581,
0.915659603197128, 0.733224726747721), x120 = c(1.27778739808127,
0.813037838321179, 0.779596480540931), x130 = c(1.25000598328188,
0.488610395696014, 0.806707685347646), x140 = c(1.82296009687707,
1.16132276877761, 1.31973652262241), x150 = c(0.929914232343435,
1.41477890312672, 1.41652730805799), x160 = c(1.19612871715799,
0.801679770927876, 0.39746836386621), x170 = c(1.88860023999587,
1.03295020200312, 0.729622524231672), x180 = c(0.926427994389087,
1.20304362708703, 1.57529754098505)), row.names = c(NA, -3L),
class = "data.frame")
I am trying to use ggplot (any other method of plotting would do) but in reading the requirements of the ggplot function I am struggling to understand if I should possibly create a vector of values to use as the aes parameter y?
Thanks in advance,
F

