r - Scatter Plot with Colour Coding -


this question has answer here:

i've been given dataframe following structure

data frame:

data frame

there 3 different types of detector: diamond, efd, pfd there 12 different collimator measurements 5 - 40 pages represent days of experiment (there 16 in total)

i want produce plot looks this

desired plot:

desired plot

i want colour code each vertical series of points 3 detector types.

how do this?

as stated above please provide reproducible example next time. should looking for:

> df <- data.frame(1:10, c("a", "b", "c", "b", "a", "b", "c", "b", "a", "b")) > colnames(df) <- c("collimator", "page") > df    collimator page 1       1      2       2      b 3       3      c 4       4      b 5       5      6       6      b 7       7      c 8       8      b 9       9      10     10      b > library(lattice) > dotplot(collimator ~ page, data=df) 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -