similar to: Adding time series to time graphs

Displaying 20 results from an estimated 10000 matches similar to: "Adding time series to time graphs"

2010 Jun 28
2
Stacked Histogram, multiple lines for dates of news stories?
Dear colleagues, I have extracted the dates of several news stories from a newspaper data base to chart coverage trends of an issue over time. They are in a data frame that looks just like one generated by the reproducible code below. I can already generate a histogram of the dates with various intervals (months, quarters, weeks years) using hist.Date. However, there are two other
2011 Jul 11
1
grep lines before or after pattern matched?
Dear colleagues, I have a series of newspaper articles in a text file, downloaded from a text file. They look as follows: Document 1 of 100 \n \n \n Newspaper Name \n \n Day Date I have a series of grep scripts that can extract the date and convert it to a date object, but I can't figure out how to grep the newspaper name. There is no field ID attached to those lines. The best I can come
2005 Feb 03
1
Efficient selection and alteration of dataframe records
Hi All, I am writing a simulation that examines the effects of species extinctions on ecological communties by sequentially removing individuals of a given species (sometimes using weighted probabilities) and replacing the lost individuals with species identities randomly sampled from the remaining individuals. Thus I use two dataframes. One contains all the individuals and their species
2013 Jan 08
1
tm: custom reader for readPlain
Hello: I have a series of newspaper articles from a Canadian newspaper database (Canadian Newsstand) that look just like below. I've read through this vignette (http://cran.r-project.org/web/packages/tm/vignettes/extensions.pdf) about creating a custom reader to extract meta-data, but I can't understand how to apply this in the context of a text document, rather than in the tabular format
2010 Dec 10
2
45 Degree labels on barplot? Help understanding code previously posted.
Dear colleagues, i found a line or two of code in the help archives from Uwe Ligges about creating slanted x-labels for a barplot and it works well for my purposes (code below). However, I was hoping someone could explain to me precisely what the code is doing. I'm aware it's invoking the text command, and I know the first ttwo arguments to text are x and y co-ordinates. I'm also
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
2010 Jun 29
3
generate irregular series of dates
Dear colleagues, particularly academic ones, So I'm creating a Microsoft Word template for myself so that every time I teach a new course, I don't have to enter in the dates manually for each class session. I'd like to use an R script that can generate an irregular series of dates starting from one date (semester begin) to another (semester end) using an irregular interval in
2012 Nov 09
5
using lapply with recode
Hello: Forgive me, this is surely a simple question but I can't figure it out, having consulted the help archives and "Data Manipulation With R" (Spector). I have a list of 11 data frames with one common variable in each (prov). I'd like to use lapply to go through and recode one particular level of that common variable. I can get the recode to work, but it only returns the
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
2010 Oct 10
1
Create single vector after looping through multiple data frames with GREP
Hello all, I changed the subject line of the e-mail, because the question I''m posing now is different than the first one. I hope that this is proper etiquette. However, the original chain is included below. I've incorporated bits of both Ethan and Brian's code into the script below, but there's one aspect I can't get my head around. I'm totally new to programming
2007 Sep 07
2
puppetmasterd memory usage
Hi, We have dedicated puppet master boxes, which basically only run a mongrel/puppetmasterd (6 instances), an apache proxy for mongrel and puppetd. Recently puppetmasterds seemed to have leaked almost all of the RAM, and the thrashing made the box painfully slow. We restarted the puppetmasterd processes, and started collecting some statistics. Attached is a graph of memory usage on one of the
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
2010 Oct 19
2
separate elements of a character vector
Dear colleagues, this seems like an easy problem, and I found some suggestions which I've incorporated in the help list, but I can't quite get it right. I want to add a series of years to a second x-axis category label. I generate them with test and test_2 below, format them with some spacing (which is the suggestion I took from the R-list) and concatenate them and then write them with
2011 Jul 28
2
cycling from x11 window in RCommander to graphics device window: Mac Os 10.6.8
Dear Colleagues, I have recently installed R Commander on my Mac OS 10.6.8. I'd like to use it for an undergraduate class this year. Everything appears to be working fine, except for one thing. I cannot use Command-tab to cycle from the X11 window in which RCommander is running to any other window open in my workspace. This is particularly important because I cannot cycle to the graphics
2013 Sep 26
1
Queue Management
Dear All, I have six different campaign and 5 different agent have login on that campaign.*Same thing i have done using agi and database,i never use queue management on this scenario. Agent** can also shuffling one campaign to anther campaign. * Now i want to do some work with queue.I want to use single queue to managing this. Eg: campaign Agent Login A a_1,a_3
2011 Nov 10
2
Rails nested Routing
Hi there! I experienced an issue with routing. Basically, I''m trying to follow step-by-step the Rails'' official guides process for what concerns the nested routing. So, I have Newspapers that has_many :ads , and :ads belongs to :newspaper . What I did was simply trying to obtain an URL like this: http://localhost/newspapers/1/ads/1 but when I set routes.rb in this way:
2015 Jul 23
2
rsyslog.conf
On Thu, July 23, 2015 10:45 am, Johnny Hughes wrote: > On 07/23/2015 09:34 AM, Valeri Galtsev wrote: >> >> On Thu, July 23, 2015 8:43 am, Windsor Dave (AdP/TEF7) wrote: >>>> -----Original Message----- > <snip> >>>>> Sorry for the top post, Outlook defaults strike again..... >>>> >>>> Outlook forces you to write above ? :-)
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
2012 Mar 12
3
lapply to change variable names and variable values
Hi: I'm sure this is a very easy problem. I've consulted Data Manipulation With R and the R Book and can't find an answer. Sample list of data frames looks as follows: .xx<-list(df<-data.frame(Var1=rep('Alabama', 400), Var2=rep(c(2004, 2005, 2006, 2007), 400)), df2<-data.frame(Var1=rep('Tennessee', 400), Var2=rep(c(2004,2005,2006,2007), 400)),