I have two excel files like this that i import as data frame
x title1 title2 x title3
1 x y 1 j
2 a b 2 m
3 i j 3 y
4 m n
i want to melt these data frames into one like this
1 title1 x
2 title1 a
3 title1 i
4 title1 m
1 title2 y
2 title2 b
3 title2 j
4 title2 n
1 title3 j
2 title3 m
3 title3 y
i should draw a plot of the final data frame using ggplot, i know how to work with ggplot but im a little confused how to melt two unequal data frames into one i appreciate any help