Friday 15 June 2012

r - ggplot2 lines from point to point on xy are sorted -


I am trying to see the path of an MCMC trace and the following template is plot () However, when I try to do this in ggplot2 , then I show the type of thing after that, it exemplifies the X-axis values ​​- which I might find in some circumstances It is, but no longer.

  set.seed (123) t1 & lt; - data.frame (x = rnorm (20), y = rnorm (20)) plot (t1 $ x, t1 $ y, type = 'b' 'couplot (t1 $ x, t1n, gom = c) ('Point', 'line'))   

I plot () path in ggplot2 ?

use path instead of line . connects to the largest X value with the smallest of digits, but path will add them in sequence because they are in the data frame

  qplot (T1 $ x, t1 $ y, geom = c ('point', 'path'))    

No comments:

Post a Comment