# I get the following error message , what shall I do?

#### marwah

##### New Member
I have the following code:
Code:
mat <- matrix(c(99.26252,71.37107,61.3334,39.18475,24.28588,14.35852,6.303219,
3.56242,1.954307,130.77527,94.88575,78.30003,49.84874,31.19563,
18.62511,8.588128,4.634585,2.460038,151.68859,110.49118,
89.55988,56.92585,35.78126,21.45662,10.1045,5.346123,2.795664,197.6194,
144.76456,114.28928,72.46894,45.85244,27.67531,13.434826,6.908836,
3.532782,217.0695,159.27815,124.76132,79.0509,50.11723,30.30871,
14.845104,7.57059,3.844926), ncol=5, nrow=9,
dimnames=list(time=c("5min","10min" , "15min","30min","1H","2H","6H","12H","24H"),
year=c("2years", "5years","10years","50years","100years")))

mat2=as.data.frame(as.table(mat))

and I want to plot is as follows:

Code:
require("ggplot2")

ggplot(data=mat2 ,
aes(x=time, y= Freq, colour= year)) +
geom_line()
but I keep getting the following error message:
geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?

what can I do?