title: seting its own color and shape scale for different point sets in R
body: <p>I am trying to plot two sets of points in one plot, and I would like each set have its own color scale and shape scale. When I add the second color scale and shape scale, the first color and shape scale were replaced.</p>
  
  <p>My aim is that each point sets have its own legend displaying its colors and shapes. </p>
  
  <p>My dataframe(<code>df</code>)looks like this:</p>
  
  <pre><code>variable measurements set1 set2
  a        1            2    3
  a        2            3    4
  b        3            4    5
  b        4            5    6
  c        5            6    7
  c        6            7    8    
  d        7            8    9
  d        8            8    10
  e        9            10   11
  e        10           11   12
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>p&lt;-ggplot()+
    geom_point(data = df,aes(x = measurements,y = set1,shape=variable),colour="red",size=3)+
    #scale_shape_manual(name="set1",
    #                   labels=c("A","B","C","D","E"),
    #                   values = c(0, 1, 2, 4, 8)) +
    #scale_colour_manual(name="set1",
    #                    labels=c("A","B","C","D","E"),
    #                    values = c("red", "red", "red", "red","red")) +
    geom_point(data = df,aes(x = measurements,y = set2,shape=variable), colour="green",size=3)+
    #scale_shape_manual(name="set2",
    #                   labels=c("A","B","C","D","E"),
    #                   values = c(22, 16, 24, 23, 11)) +
    #scale_colour_manual(name="set2",
    #                    labels=c("A","B","C","D","E"),
    #                    values = c("green", "green", "green", "green","green")) 
  
  p
  </code></pre>
  
  <p>Thank you in advance!</p>