hadley/r4ds

Figure 5.7 doesn't seem right.

zengzhiyu opened this issue · 2 comments

Figure 5.7 doesn't seem right.

For reference, here is the figure: https://r4ds.hadley.nz/data-tidy#fig-pivot-names-and-values.

Could you elaborate on what doesn't seem right about it?

thanks, hope my understanding is correct. the value is 1~8, so they should be under x, y after transformation. and the 1,2 from x1, x2, y1, y2, should be under the column x, y after transformation.