plotted location names as labels. I have tried Your code, the problem
the whole plot (all you can actually see is one big dot). If you use
levels, you're gonna see just the middle values. Subsetting works like
On Apr 4, 4:36 pm, Brandon Hurr <
brandon.h...@gmail.com> wrote:
> I think I understand better, but I'm still not sure how you're really going
> to compare things.
>
> If I understand correctly, each patient has a value for a series of 171
> locations, and you want to be able to compare the patient data at each
> location relative to the distribution of the points. Because you want to
> look at the distribution of the points and compare locations simultaneously
> you cannot simply facet the data in chunks.
>
> I suppose you could plot all the points by color with a very small different
> type of point, then layer on top of that a subset of the locations.
>
> Something like...
> ggplot(aes(x = coord1, y = coord2, colour=patient))+
> geom_point(data = mdsdata2d, size=0.5, shape = 3)+
> geom_point(data = droplevels(subset(mdsdata2d, location = 1:10)),
> aes(size=location))+
> geom_vline(aes(x = 0), linetype = 2) +
> geom_hline(aes(x = 0), linetype = 2) +
> xlab("Coordinate 1") +
> ylab("Coordinate 2")
>
> #untested since I don't have a dataset to play with
> #I'm really not sure if that subset call with work,
> # I've never tried a range before.
>
> The only other thing I could think of is mean-centering your patient x and y
> coordinates and comparing the coordinates of your locations... *cum grano