I am trying to plot the graph using ggplot2
So I have the following dataframe:
iter se perf name 1 V1 0.6463573 12.8 e 2 V2 0.3265
You need to adjust the group aesthetic, replace :
geom_line(position=pd)
by
geom_line(position=pd,aes(group=name))
check whether the data type is factor by using is.factor(x), if it is TRUE, then use as.integer function.
is.factor(x)
TRUE
as.integer