Displaying 1 result from an estimated 1 matches for "data_chir".
Did you mean:
data_char
2013 Nov 23
1
how to melt variable to one variable
...to make a stacked bar plot with one bar for two variables from my
data "chir", the two variables have about 100 values like no, yes and na. I
want to show how many no, yes and na they both have together with the
stacked bar. I tried to melt these to variables first like this:
melt1=melt(data_chir, measure.vars=c("N1_re", "N2_re"), var="zpd")
but it says " arguments imply differing number of rows: 98, 196"
maybe there is another way to make the plot without melt?
thanks in advance!
[[alternative HTML version deleted]]