[R] How to plot gaps in chartSeries

2016-02-17 Thread Jeff Trefftzs
In hopes of isolating parts of a time series where my indicator is
above zero I have filled those rows where the indicator is <= 0  with
NAs.  I was hoping this would leave blank gaps when I plotted using
chartSeries(blanked, theme = 'white'), but chartSeries closes up the
gaps.  ggplot, however, leaves nice gaps in the output.

Is there a way to make chartSeries leave space for each value of the
time index of an xts object whether or not there is data for it?

-- 
Jeff Trefftzs
http://www.trefftzs.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] ggplot2 will not install after system upgrade

2015-09-21 Thread Jeff Trefftzs
On Thu, 2015-09-03 at 16:47 -0400, Ista Zahn wrote:
> Hi Jeff,
> Your chances of getting a useful response will increase if you
> provide
> some additional information. For example, which version of R? Which
> version of ggplot2? What sequence of commands produces the error?
> What
> _exactly_ does the error message say?
> 
> Does
> 
> update.packages(ask=FALSE, checkBuilt=TRUE)
> install.packages("ggplot2")
> 
> help?

Thank you, Ista!  This did, indeed, fix the problem.  ggplot2 now works
fine on both the laptop and the desktop computers.

-- 
Jeff Trefftzs
http://www.trefftzs.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] ggplot2 will not install after system upgrade

2015-09-03 Thread Jeff Trefftzs
I just upgraded my laptop from Fedora Core 20 to Fedora Core 22, and
after the upgrade R can no longer use the ggplot2 library.  The
principal complaint seems to be that libicui18n.so.50 is not found. The
version of libicu that is installed is version 54.  On the other hand,
the same environment exists on my desktop computer, also with version
54 of libicu and all works just fine.  
Any hints?  Has anyone else seen this?

Thanks,

-- 
Jeff Trefftzs
http://www.trefftzs.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] ggplot2 will not install after system upgrade

2015-09-03 Thread Jeff Trefftzs
On Thu, 2015-09-03 at 16:47 -0400, Ista Zahn wrote:
> Hi Jeff,
> Your chances of getting a useful response will increase if you
> provide
> some additional information. For example, which version of R? Which
> version of ggplot2? 


Sorry.  R was version 3.2.1
ggplot2 1.0.1

> What sequence of commands produces the error?

install.packages("ggplot2") (or various equivalents while in R-Studio

> What
> _exactly_ does the error message say?

I was working on my laptop, where I didn't have email enabled, so I was
unable to cut & paste all the output.  The last bit of the error
messages boiled down to "unable to find libicui18n.so.50.  No such file
or directory"

Does
> update.packages(ask=FALSE, checkBuilt=TRUE)
> install.packages("ggplot2")

I hadn't tried that.  

Follow-up:  On the laptop I downgraded to R-3.1.3 and things worked
again.  The various error messages I got were confusing.  When I tried
to install ggplot2 from the first US mirror the https server at
Berkeley), it told me "gplot2 not available for R 3.2.1".  When I tried
one of the other servers (e.g., other Berkeley server, or the UCLA
server) it would download, and come to grief with the libicu message.

But downgrading to R 3.1.3 seems to have cured things.

I'm still baffled, however, since I'm writing this on my desktop
computer which has R version 3.2.1 and a successful install of ggplot2
-1.0.1 actually working.

-- 
Jeff Trefftzs
http://www.trefftzs.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.