chart_Series with knitr markdown
Hi Nick, Thanks for the suggestion. Unfortunately it doesn't help. The problem seems to occur when new.replot() is called after chartSeries() (NO underscore) Here is a new RPub to demostrate the same issue. http://rpubs.com/gsee/chart_Series_knit2 And the markdown for that is: Zeroing in on chart_Series issue ======================================================== ```{r message=FALSE} library(quantmod) getSymbols("SPY", src='yahoo') ``` This looks fine ---- ```{r figwidth=7, fig.height=6} chartSeries(SPY) ``` This looks wrong ---- ```{r} cs <- new.replot() ``` Garrett
On Sun, Nov 25, 2012 at 2:53 PM, Nick White <n-e-w at qtradr.net> wrote:
I've not seen this issue before.
Try passing the ` fig.align="left" ` argument...ie:
{r fig.width=7, fig.height=6, fig.align='left'}
On Mon, Nov 26, 2012 at 2:03 AM, G See <gsee000 at gmail.com> wrote:
I'm having trouble getting chart_Series to render properly with markdown to html. Are others using chart_Series with markdown? What am I doing wrong? The Pub at this link should be self explanatory: http://rpubs.com/gsee/chart_Series_knit The .Rmd file used to produce it is below. Thanks, Garrett Why doesn't chart_Series look right? ======================================================== ```{r message=FALSE} library(quantmod) getSymbols("SPY", src='yahoo') ``` This looks fine ---- ```{r fig.width=7, fig.height=6} chartSeries(SPY) ``` But, why does this look wrong? i.e. instead of being aligned at the left margin, there is a box with a question mark. ```{r fig.width=7, fig.height=6} chart_Series(SPY) ``` [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Finance at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.