Displaying 19 results from an estimated 19 matches similar to: "Putting names on a ggplot"
2010 Feb 28
1
ggplot 'annotate problem' again.
I had a problem annotating a graph last year ( see http://n4.nabble.com/Putting-names-on-a-ggplot-td907158.html#a907158 for the discussion)
Stefan (smu) provided a solution using annotate(). However I apparently did not update the graph file and,now, when I go back to the thread and try to use Stefan's solution it does not seem to work although I am sure that it did then.
The problem
2009 Oct 09
1
Placing text in a ggplot
I am attempting to graph 12 months of temperatures, delineate the months with a vline and place the names of the months at the top of the graph.
So far I have gotten everything to work except the names, despite getting a similar graph to work yesterday the day before yesterday with Baptise A's help. Can anyone suggest what I am doing wrong. Data set is below code.
Thanks.
Code
2012 Sep 10
0
More help need on Von Bertalanffy Growth Curves
Howdy,
Last week I got some great help on why I was getting an error code when trying to run this model, thanks everyone! I was able to get the code up and running beautifully for several data sets. Now I am getting different errors with this new data set. I can't figure out why, I have more data points with this species, and it is ordered exactly the same as the other species I have been
2018 May 16
1
Systemfit Question
I can't get my simultaneous equations to work using system fit. Please help.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
str(Empdata)
Empdata$gnipc<-as.numeric(Empdata$gnipc)
install.packages("systemfit")
library("systemfit")
pdata <- plm.data(Empdata,
2012 Sep 04
3
Comparing Von Bertalanffy Growth Curves
I am trying to compare Vbert growth curves from several years of fish data. I am following the code provided by: http://www.ncfaculty.net/dogle/fishR/gnrlex/VonBertalanffy/VonBertalanffy.pdf. Specifically the section on VBGM Comparisons between groups.
?
This code is pretty cut and dry. I am able to run it perfectly with the "fake" data that is provided. But when I run it with my own
2008 Nov 04
4
fine grain tick marks for zoo plots
Dear R Users,
I am trying to get plot.zoo to place monthy tickmarks/labels for a time
series which spans daily data going back a bit over a year. Right now, I
am getting only one tick mark on the x-axis for the beginning of 2008. How
can I force plot.zoo to place more regular x-axis tick marks on a monthly
basis ?
Thanks in advance,
Tolga
Generally, this communication is for informational
2018 May 16
0
Systemfit
Sadly you failed to set your email program to send plain text and the data is corrupted at my end.
I also think you need to reduce the size of the data set... the intent here is to increase your understanding, not debug your particular analysis.
I will say that I am having a very challenging time understanding what you are trying to accomplish though. What are the equations that you think need
2018 May 29
0
How to generate a conditional dummy in R?
Hi Faradj,
What a problem! I think I have worked it out, but only because the
result is the one you said you wanted.
# the sample data frame is named fkdf
Y2Xby3<-function(x) {
nrows<-dim(x)[1]
X<-rep(0,nrows)
for(i in 1:(nrows-2)) {
if(!is.na(x$Y[i])) {
if(x$Y[i] == 1 && any(is.na(x$Y[(i+1):(i+2)]))) X[i]<-1
if(i > 1) {
if(X[i-1] == 1) X[i]<-0
}
}
2018 May 29
1
How to generate a conditional dummy in R?
Dear Jim,
wow! It worked! Thanks a lot.
I did as you suggested and it worked well with the real data. Although it gave me this error: Error in if (!is.na(x$Y[i])) { : argument is of length zero. For some reason the X1 produced less observations than it is in the data. But it's not a big deal - I identified those cases and simply deleted from the data (it was countries that only appeared
2018 May 28
3
How to generate a conditional dummy in R?
Hi everyone,
I am trying to generate a conditional dummy variable ?X" with the following rules
set X=1 if Y is =1, two years prior to the NA. [0,0,NA].
For example, if the pattern for Y is 0,0,NA then the X variable is =0 for all the two years prior to the NA. If the pattern for Y is 0,1,NA or 1,0,NA then the X =1 . To be clear, if 1,1,NA then the X=1 that first specific year, it
2018 May 15
2
Systemfit
OK, Let's try this again! Here is the reproducible script; it is long because I had to copy the panel dataset here. My question is related to systemfit; I don't know how to get the result for the entire panel.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
install.packages("systemfit")
2003 Jan 24
4
Problems for 13 year old
I would like to teach some scientific/statistical computing to my 13
year old nephew and was considering using R for this. He has a Mac G3
OS 9.1.
I am looking for ideas for problems that would be interesting and
motivating for someone that age. I recently taught him the basics of
HTML and noticed that he particularly was intrigued by the ability to
change colors; thus, perhaps problems
2018 May 15
0
Systemfit
... and the mailing list is picky about attachments... whatever you attached did not conform to the stringent requirements mentioned in the Posting Guide. Pasting the code right into the email is usually safest, though you DO have to post using plain text (as the Posting Guide indicates) or your code may get mangled by the automatic html format removal.
On May 15, 2018 7:04:31 AM PDT, Bert Gunter
2018 May 15
1
Systemfit
Unless there is good reason not to, always cc the list -- there are lots of
smarter folks than I on it who can help.
I may or may not have time to look at this. Hopefully someone else will.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip
2011 Jan 17
1
filling in datasets of differing lengths
g''day all,
I need help with this please.
I have a dataset of site names and years they were trapped in (a subset of
it is bs, below) and a dataset of sites that actually caught animals
(subsetted as brep, below). I need to add to brep, a row with a zero in the
classcount column, for every year each site was trapped but caught nothing.
so for Site 1, I need to add rows that say
2012 Oct 30
2
help with for loop: new column giving count of observation for each SITEID
Hello,
I think this is easy, but I can't seem to find a good way to do this in the R help. I have a list of sites, with multiple years of data for each site id. I want to create a new column that gives a number describing whether it is the 1st year ("1" ) the data was collected for the site, the second year ("2"), etc. I have different years for each siteid, but I don't
2008 Sep 02
0
Error in .local(object, ...) : test vector does not match model !
I am getting a really strange error when I am using predict on an ksvm model. The error is "Error in .local(object, ...) : test vector does not match model !". I do understand that this happens when the test vectors do not match the
Model. But in this case it is not so. I am attaching a portion of both the test data used for prediction and the data used to build the model. I could
2012 Jul 10
2
estimation of NA by predict command
Dear arun and all R users,
I will first of all try to simply define my issue..
I have data in the following format
Year Discharge
dd/mm/yyyy x
.. …
… …
There are some NA values in the discharge which I would like to predict by using “predict command”. I cant figure out the way to write the coding for that. Could you please help me on that???
I have also ,written
2003 Dec 02
2
IPv4-only networks via IPv6-only network
Hello all,
I would like to connect two IPv4-only networks through global IPv6-only
network with tinc.
Could anyone tell me how to configure tinc.conf and the other config files?
Thanks in advance,
Ichiro
Tinc: Discussion list about the tinc VPN daemon
Archive: http://mail.nl.linux.org/lists/
Tinc site: http://tinc.nl.linux.org/