I'd like to plot some of my results (because plots are cooler than text), but I don't know exactly what I'm looking for...
I have data like this:
~ID, ~test, ~result, ~position,
1, 1, 0, "level1loc1",
2, 1, 1, "level1loc2",
2, 2, 1, "level2loc3",
3, 2, 1, "level3loc1",
4, 1, 1, "level2loc2",
4, 1, 1, "level1loc3",
5, 1, 0, "level2loc4",
)
I'm not sure if the ID group is really relevant for the purpose of plotting. What I'd like to do is plot the results of test 1 or 2 as a proportion in each position in some sort of 3d or facetted matrix (where levels are facets). The positions don't really have any order, they numbers in the position variable are just for clarity - in total there are 3 levels with 4 locations. This means I'll also have to specify where each location is for each level.
Any suggestions are greatly appreciated!
Edit: I forgot to mention that test 2 only has 1 position observation, while test 1 might have levels (3) x location (4) = 12 observations.