similar to: Split charts with ggplot2, tidyquant

Displaying 20 results from an estimated 300 matches similar to: "Split charts with ggplot2, tidyquant"

2018 Jan 18
0
Split charts with ggplot2, tidyquant
Hi Charlie, I am comfortable to put the data in any way that works best. Here are two possibilities: an xts and a data frame. library(quantmod) quantmod::getSymbols("SPY") # creates xts variable SPY SPYxts <- SPY[,c("SPY.Close","SPY.Volume")] SPYdf <- data.frame(Date=index(SPYxts),close=as.numeric(SPYxts$SPY.Close),
2018 Jan 19
2
Split charts with ggplot2, tidyquant
So the general strategy for getting these into separate panels in ggplot is to have a single variable that will be your response and a factor variable that indexes which original variable it came from. This can be accomplished in many ways, but the way I use is with the melt() function in the reshape2 package. For example, library(reshape2) plotDF <- melt(SPYdf, ??? ??? ??? ??? ??? ???
2018 Jan 19
0
Split charts with ggplot2, tidyquant
Hi Charlie, Thanks. This is helpful. As mentioned in my original question, I want to be able to plot a few such charts on the same page, say a 2 x 2 grid with such a chart for each of 4 different stocks. Using your solution I accomplished this by making a list pLst of your ggplots and then calling cowplot::plot_grid( plotlist=pLst, nrow=2, ncol=2 ) That worked fine. The one issue I have is that
2018 Jan 20
2
Split charts with ggplot2, tidyquant
For this kind of control you will probably need to move to base graphics and utilize the `fig` argument in par(), in which case you would want to run the plot() command twice: once with your first outcome and once with your second, changing the par() settings before each one to control the size. On 01/19/2018 01:39 PM, Eric Berger wrote: > Hi Charlie, > Thanks. This is helpful. As
2018 Jan 20
0
Split charts with ggplot2, tidyquant
That (the need for base graphics) is false. It certainly **can** be done in base graphics -- see ?layout for a perhaps more straightforward way to do it along the lines you suggest. However both lattice and ggplot are based on grid graphics, which has a similar but slightly more flexible ?grid.layout function which would allow one to size and place subsequent ggplot or lattice graphs in an
2018 Jan 21
1
Split charts with ggplot2, tidyquant
Thanks for the reminder about lattice! I did some searching and there's a good example of manipulating the size of subplots using the `position` argument (see pp. 202-203 in the Trellis Users Guide: http://ml.stat.purdue.edu/stat695t/writings/Trellis.User.pdf). This is not within the paneling environment with the headers like in other trellis plots though, so you'll have to do a bit
2018 Jan 17
0
Split charts with ggplot2, tidyquant
A very common chart in the financial markets is a split chart with two time series shown in two vertically stacked sub-charts. A classic case would be the top panel showing the time series of historical prices of some stock, and the bottom panel showing the volume traded per day immediately below it. The common x-axis is the dates of the time period covered. I would like to create such a standard
2017 Oct 18
1
Problem with tq_mutate_xy() from the tidyquant package
I was able to reproduce the problem with this self-contained example. Maybe it could be reproduced with an even smaller one ... library(tidyquant) # Loads tidyverse, tidyquant, financial pkgs, xts/zoo library(xts) dtV <- as.Date("2017-01-01") + 1:100 locL <- list( foo=xts(rnorm(100), order.by=dtV), bar=xts(rnorm(100), order.by=dtV) ) fullXts <- do.call(merge,locL) smallXts
2017 Aug 07
1
tidyquant error downloading symbols for Index
Hi R Helpers, I recently tried to take advantage of the ability to download all the tickers in the S&P 500 using the functionality of tidyquant, but it threw an error. For summary, the set of commands that I ran was library(tidyquant) tq_index_options() tq_index("SP500") sessionInfo() R feedback including error message and sessionInfo are provided below. Guidance would be
2003 Apr 08
2
Printing PDF very slow
Dear all, We are trying to get the Windows client to print thought postscript printers to SAMBA box, Windows apps (Words, Outlook, etc..) freeze for a long time to spool and print to SAMBA ghostscript. We have a windows 2000 PDC and using SAMBA 2.2.4. Normal SAMBA file sharing, browsing and transfers are fast. I sincerely thank you for your help. Regards Steven
2002 Oct 30
4
PDF printer using ps2pdf ?
Hi, Is it possible to set up a printer in samba that will use ps2pdf converter to create pdf documents when printing on it ? Best Regards Steph
2002 Nov 11
3
PDF Creation
I am not on the SAMBA list - so please if you reply remember to CC me. My Linux users have access to ps2pdf - a nice tool to convert Postscript files to PDF files.I'd like to make it available to my PC Users - who don't understand what a command line prompt is.... I know the following works: 1) On my Windows machine - Add a new printer an APPLE LASER POSTSCRIPT WRITER But
1999 Oct 03
0
LPRng: RedMon - interesting program (fwd)
Hi Everyone, Just thought I'd pass this little snippette your way. It may help someone to get around the limitations of M$ Windoze printing. - John H Terpstra ---------- Forwarded message ---------- Date: Sat, 2 Oct 1999 17:19:08 -0700 (PDT) From: papowell@astart.com Reply-To: lprng@lprng.com To: lprng@lprng.com Subject: LPRng: RedMon - interesting program I just ran across the following
2017 Nov 22
2
Tibble o data.table?
Buenas Os queria preguntar que ventaja le veis a las tibbles frente a los data.table, ya que para mi, quitando el uso de librerias como tidyr o purrr, en el resto prefiero usar data.table. Me parece igual de potente y mucho más rápido, y no le veo las supuestas ventajas, pero quiero conocer vuestra opinion. Gracias Jesús [[alternative HTML version deleted]]
2017 Nov 22
3
Tibble o data.table?
Tienes razon de que hay una serie de paquetes que lo usan, pero me da que vienen impulsados por Rstudio desde el paquete tidyverse... Yo me resisto a usarlo. Me parece que queda mas limpio, pero no se porque no le pillo la gracia...Quizas sea el apoyo de Rstudio lo que me tire para atras... ________________________________ De: Carlos Ortega <cof en qualityexcellence.es> Enviado: miércoles,
2005 Feb 08
0
RE: [R] Windows Printing and Line Widths
... Moved from R-help ... Thank you for your suggestion, Professor Ripley. Postscript does seem like the way to go for printing line widths correctly in Windows. On Linux I am using a simple dev.print() wrapper (as suggested), with a pipe to lpr. However, I had an extremely difficult time getting postscript printing under windows. ?postscript recommends the RedMon suite of tools for printing
2017 Nov 22
3
Tibble o data.table?
Que es postgres y presto?? Se uqe google tiene la respuesta,.... ________________________________ De: José Luis Cañadas <canadasreche en gmail.com> Enviado: miércoles, 22 de noviembre de 2017 22:01 Para: Jesús Para Fernández Cc: Carlos Ortega; r-help-es en r-project.org Asunto: Re: [R-es] Tibble o data.table? Yo la ventaja que le veo a tibble y demás cosas del mundo tidy es la conexión a
2010 Aug 04
5
Question regarding significance of a covariate in a coxme survival model
Hi, I am running a Cox Mixed Effects Hazard model using the library coxme. I am trying to model time to onset (age_sym1) of thought problems (e.g. hearing voices) (sym1). As I have siblings in my dataset, I have decided to account for this by including a random effect for family (famid). My covariate of interest is Mother's diagnosis where a 0 is bipolar, 1 is control, and 2 is major
2018 Jan 12
0
Wine release 3.0-rc6
The Wine development release 3.0-rc6 is now available. What's new in this release (see below for details): - Bug fixes only, we are in code freeze. The source is available from the following locations: https://dl.winehq.org/wine/source/3.0/wine-3.0-rc6.tar.xz http://mirrors.ibiblio.org/wine/source/3.0/wine-3.0-rc6.tar.xz Binary packages for various distributions will be available
2000 Jun 17
2
R 1.1.0 for Windows
Windows binaries at CRAN (bin/windows/Windows-NT/base) have been updated to R-1.1.0. See below for a list of Windows-specific changes. We thanks all the people who checked over pre-test versions. guido masarotto (for the R-core team) Windows-specific changes to R ============================= There is now a GUI preferences editor on the Edit menu in Rgui. A data entry editor is now