Monday 15 September 2014

r - qplot not showing anything on my plot -


Hello I'm trying to use qplot to plot this data

 < Code> print (data) partition axis1 axis2 v1 alpha 0.064989 -0.093558 v2 beta -0.065058 0.009540 v3 delta 0.100572 -0.081021 v4z -0.152011 0.057507 v5 alpha -0.039480 -0.020070 v6 beta 0.044027 -0.055642 v 7 seat -0.149427 0.038032 V8 Z 0.133783 -0.021328 V9 Z-0.014662 -0.029677 V10 Alpha -0.094468 0.002095 V11 Beta 0.090668 -0.033317   

I use this code to plot by group group axis and color Whistle The Am

  qplot   

But do not do anything. What am I doing wrong?

You do not want to quote columns in ggplot or qplot Are there. In this there is a built-in like or attach so that you can specify the columns as if they were already defined as variables in your namespace.

  qplot (data = taxi, x = axis 1, y = axis 2, color = partition)    

No comments:

Post a Comment