Hi I like to use "axis.POSIXct" to plot days from 2006 till 2008. But I only have datas for the summer months. Is it possible to get two axis breaks, to have not so long distances without points? thx Christof
It may be possible, but perhaps not a good idea. A better approach would be to use multiple graphs (panels in lattice or facets in ggplot2). Provide a reproducible example and you might get a more concrete example. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. "Christof Klu?" <ckluss at email.uni-kiel.de> wrote:>Hi > >I like to use "axis.POSIXct" to plot days from 2006 till 2008. But I >only have datas for the summer months. Is it possible to get two axis >breaks, to have not so long distances without points? > >thx >Christof > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
On Jan 20, 2012, at 10:46 AM, Christof Klu? wrote:> Hi > > I like to use "axis.POSIXct" to plot days from 2006 till 2008. But I > only have datas for the summer months. Is it possible to get two axis > breaks, to have not so long distances without points?There are worked examples of broken axes in package plotrix but I don't know if they are set up for multiple breaks, or if they support data formats. At any rate, the plotrix package is something you should investigate because it has a wealth of useful examples demonstrating taking R's base graphics to the "next level". -- David Winsemius, MD West Hartford, CT
On 01/21/2012 02:46 AM, Christof Klu? wrote:> Hi > > I like to use "axis.POSIXct" to plot days from 2006 till 2008. But I > only have datas for the summer months. Is it possible to get two axis > breaks, to have not so long distances without points? >Hi Christof, You might be able to do this with the gap.plot function (plotrix), but I think that with POSIXct x values, it might be easier to display side by side plots in whatever system you prefer. I don't have time at the moment to work up an example, but I might try one later. Jim