similar to: increase number of ticks on x axis of dates

Displaying 20 results from an estimated 4000 matches similar to: "increase number of ticks on x axis of dates"

2008 Dec 31
2
sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y %H:%M"))
Newbie here~ I've spent a ton of time on this, but have to admit I am stuck. I've tried various combinations of strptime and the package CHRON, but still can't get there. My simple task is that I want to plot salinity (S1 or S2) on y-axis and time on x-axis, but I want to use a lay-understandable representation of time (not Julian). If I use the following command, I can make a
2009 Jul 21
3
how to use a list to create a plot
I issued the following command to obtain the std dev for each month. psd<-numSummary(Sal, groups=month, statistics=c("sd")) which resulted in > psd sd n NA 1 6.930340 9367 2319 2 7.847003 10827 1008 3 5.962308 12988 404 4
2009 May 14
1
replacing default axis labels on a plot
I have 3 columns: flow, month, and monthname, where month is 1-12, and monthname is name of month. I can't get the plot to replace the 1-12 with monthname using ticks.lab. What am I doing wrong? plot(flow~factor(month),xlab="Month",ylab="Total Flow per Month", ylim=c(0,55000), ticks.lab="monthname") Thanks Gregory A. Graves Lead Scientist REstoration
2009 Aug 13
3
shading between two smoothed curves
I have a set of 52 weekly values, one is the desired high lake stage for a week, and the other is the desired low lake stage for each week. It looks like this: week High Low 1 16 14.5 2 16 14.5 3 15.95 14.45 4 15.84 14.34 5 15.73 14.23 6 15.61 14.11 7 15.5 14 8 15.38 13.88 9 15.25 13.75 10 15.13 13.63 .... 52 15 13.5 I can plot out two nice curves
2011 Feb 03
2
tapply output as a dataframe
On Mon, Apr 13, 2009 at 12:41 PM, Dan Dube <ddube-at-advisen.com> wrote: > i use tapply and by often, but i always end up banging my head against > the wall with the output. The proposed solution of Dan's problem posted on R-help was: > do.call(rbind,a) When I use this 'solution' I get 'ERROR: second argument must be a list'. So head on wall continues. My
2010 Sep 22
1
failure to access packages
I am helping a fellow worker get R up and running, and he has run into a peculiar problem I've not encountered in previous install situations. >From the Rconsole menu choice, he can set CRAN mirror to USA CA2, but when he selects "load packages" a very truncated list of packages appears (many packages don't appear at all). If he issues "chooseCRANmirror()" from the
2017 Sep 11
2
Σχετ: show 0 at y axis in xyplot lattice
Dear Bert and all, I am really sorry. This is the full code: dat<-read.csv("example.csv")attach(dat) sdate<-as.Date(Date, format="%Y-%m-%d") #change the colour of the strip background my.settings <- canonical.theme(color=FALSE) my.settings[['strip.background']]$col <- "blue" dat_key <- list(space="right", ??????????????? lines =
2017 Sep 11
0
show 0 at y axis in xyplot lattice
Not reproducible, as we have neither "example.csv" nor "Date" . Cheers, 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 ) On Mon, Sep 11, 2017 at 2:38 PM, Maria Lathouri <mlathouri at yahoo.gr> wrote: > Dear
2017 Sep 11
0
show 0 at y axis in xyplot lattice
1. Not reproducible since my.settings, dat_key, sdate not provided. 2. Why did you not try something like ylim = c(-5,80) ? Cheers, 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 ) On Mon, Sep 11, 2017 at 12:33 PM, Maria Lathouri via
2008 Apr 23
1
Time arithmetic
I am a bit worried I am reinventing the wheel. Isn't there a calendar system in R? I have written a function to add months to a date and return the number of days resulting. I am newish to R so I am hoping there is a package that can do this sort of date arithmetic for me... Worik DaysInMonths <- function(s,d){ ## Days in d months from s sdate <- MSTD(s) ## Get day, month
2017 Sep 11
4
show 0 at y axis in xyplot lattice
Dear all I am trying to make a plot in xyplot lattice by groups. I would like to show "0" in y axis but I don't want to be aligned with the x axis. I want to be a little bit above. I have tried many options but I don't get what I want. I also tried ylim=c(0, 80) but both 0 and 80 are fully aligned with the x-axis and the upper boundary of the plot, respectively: xyplot(upper.zn +
2017 Sep 12
0
show 0 at y axis in xyplot lattice
Hi Maria Rule 1 make sure your data is in the right format dat <- source("G:/1/savedat.txt") > dat $value Location Date Zn2 upper.zn lower.zn 1 upstream 2016-04-27 29.92477 55.59800 13.912207 2 spill 2016-04-27 12.84040 22.07006 6.964934 3 downstream 2016-04-27 22.49673 41.60901 11.739109 4 upstream 2016-06-28 23.98425 45.60219 10.690640 5
2010 Nov 30
2
reference text variables as column name to plot
Having given myself carpal tunnel looking for answer to this ... I have a dataset each column of which has 12 rows in it. I created a variable 'z' as follows: z=1:24 Since I have a large number of these plots to make, and they are a bit complex, I want to want to reference the column I want to plot via a variable containing the name of that column. As follows:
2017 Sep 12
2
Σχετ: show 0 at y axis in xyplot lattice
Dear all, Thank you very much for the help. ylim=c(-5, 80) worked.? Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way and normally it works. Because when I try to attach a .csv file with the data, most of the time it doesn't go through.? I will know for the next time.? Many thanks. Regards,Maria ???? 2:11 ?.?.
2010 Nov 17
3
stacking consecutive columns
I have a file, each column of which is a separate year, and each row of each column is mean precipitation for that month. Looks like this (except it goes back to 1964). month X2000 X2001 X2002 X2003 X2004 X2005 X2006 X2007 X2008 X2009 1 1.600 1.010 4.320 2.110 0.925 3.275 3.460 0.675 1.315 2.920 2 2.960 3.905 3.230 2.380 2.720 1.880 2.430 1.380
2010 Feb 23
1
Problem with strptime generating missing values where none appear to exist
Dear R Helpers, I am having difficulty with strptime. I wish to find the differences between two vectors of times. I have apparently no difficulty to convert the vectors to the appropriate format using strptime. But, then difftime does not calculate all the differences. Here is the code and output:- dob=strptime(as.character(datx$BDT),'%d-%b-%y'); dob$year=dob$year-100
2017 Sep 12
0
Σχετ: show 0 at y axis in xyplot lattice
Dear Maria The file you attached to your first e-mail did come through but I think some people on the list must have missed it. Michael On 12/09/2017 12:54, Maria Lathouri via R-help wrote: > Dear all, > Thank you very much for the help. ylim=c(-5, 80) worked. > Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way
2011 Feb 01
1
Setting maximum value of the legend on an image.plot and animation
Hello, I'm doing the following: library(ncdf) library(fields) library(animation) saline <- open.ncdf("salinity_1990.nc") salt = get.var.ncdf(nc=saline, varid="Salinity") # create an animation of the complete temporal domain in the ncdf file. saveHTML({ for (i in 1:364) { image.plot(salt[, , i]) } }, img.name = "salinity.img",
2010 Dec 09
1
Barplot with "Independent" Lines Y axis
Hi list. I'm plotting pluviometric (Rain) data as a barplot, and then adding the salinity variable to this plot as lines. Obviously as these Y scales are completely different the salinity appears at the lower part of the graph extremely compacted. I need to plot the line at the exactly same area of the barplot but with its own Y axis (at the right), so the salinity can use the plot area
2010 Jun 10
1
nls model fitting errors
What am I failing to understand here? The script below works fine if the dataset being used is DNase1 <- DNase[ DNase$Run == 1, ] per the example given in help(nlrob). Obviously, I am trying to understand how to use nls and nlrob to fit curves to data using R. #package=DAAG attach(codling) plot(pobs~dose) #next command returns 'step factor reduced below min factor