search for: staxlab

Displaying 20 results from an estimated 63 matches for "staxlab".

2018 May 06
2
Adding Year-Month-Day to X axis
Jim, That you very much! How do I instruct staxlab to label once every n days, rather than labeling every day? Greg > On May 5, 2018, at 6:50 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > > staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) [[alternative HTML version deleted]]
2018 May 07
2
Adding Year-Month-Day to X axis
..., the "axis" function puts the labels on one line and drops > labels that would overlap. When you have labels that are all the same > length, this usually results in every second, or third, or fourth > label being displayed. So you can probably get what you want by not > using staxlab. However, if you really want to use staxlab, try this: > > oddones<-seq(1,length(x_yyyymmdd)-1,by=2) > staxlab(1,at=x_yyyymmdd[oddones], > labels=format(x_yyyymmdd,"%Y-%m-%d")[oddones]) > > It will also work with plain "axis", which is what you seem to wan...
2018 May 06
0
Adding Year-Month-Day to X axis
Hi Greg, By default, the "axis" function puts the labels on one line and drops labels that would overlap. When you have labels that are all the same length, this usually results in every second, or third, or fourth label being displayed. So you can probably get what you want by not using staxlab. However, if you really want to use staxlab, try this: oddones<-seq(1,length(x_yyyymmdd)-1,by=2) staxlab(1,at=x_yyyymmdd[oddones], labels=format(x_yyyymmdd,"%Y-%m-%d")[oddones]) It will also work with plain "axis", which is what you seem to want. Jim
2018 May 07
0
Adding Year-Month-Day to X axis
...") axis(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) axis(2,at=seq(240,480,by=60),labels=c("4.00","5.00","6.00","7.00","8.00")) However, you are only getting every third label. If you want to display more of them you can use staxlab: staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d"),nlines=3) OR staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d"),srt=45) Jim On Mon, May 7, 2018 at 1:26 PM, Gregory Coats <gregcoats at me.com> wrote: > Jim, > Thank you very much! > How d...
2018 May 05
0
Adding Year-Month-Day to X axis
...quot;2018-04-28","2018-04-29","2018-04-30","2018-05-01","2018-05-02", "2018-05-03","2018-05-04","2018-05-05"),format="%Y-%m-%d") plot(x_yyyymmdd, y_duration, type="l",xaxt="n") library(plotrix) staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) Jim On Sun, May 6, 2018 at 4:14 AM, Gregory Coats <gregcoats at me.com> wrote: > I am using R 3.5.0 for Mac OS X. > Issuing these two commands yields the expected plot. > y_duration <- c (301.59050, 387.35700, 365...
2018 May 05
1
Adding Year-Month-Day to X axis
...t;,"2018-04-29","2018-04-30","2018-05-01","2018-05-02", > "2018-05-03","2018-05-04","2018-05-05"),format="%Y-%m-%d") > plot(x_yyyymmdd, y_duration, type="l",xaxt="n") > library(plotrix) > staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d")) > > Jim [[alternative HTML version deleted]]
2018 May 05
4
Adding Year-Month-Day to X axis
I am using R 3.5.0 for Mac OS X. Issuing these two commands yields the expected plot. y_duration <- c (301.59050, 387.35700, 365.64366, 317.26150, 321.71883, 342.44950, 318.95350, 322.33233, 330.60333, 428.99516, 297.82066) plot (y_duration, type="l?) Adding Year-Month-Day values for the x axis, and then calling plot (x,y), yields a bizarre plot. Apparently, R does not
2017 Jul 13
1
How to make a figure plotting p-values by range of different adjustment values?
...p.adjust.methods) { > padjs[npadj]<-p.adjust(pval,method=method,n=5) > npadj<-npadj+1 > } > plot(padjs,xaxt="n",main="P plot",xlab="Method",ylab="adjusted p values") > abline(h=0.05,col="lightgray") > library(plotrix) > staxlab(1,at=1:8,labels=p.adjust.methods) > > Jim > > > On Thu, Jul 13, 2017 at 12:53 AM, Kirsten Morehouse > <kmoreho1 at swarthmore.edu> wrote: > > Hi all, > > > > Thank you for taking the time to read my message. I'm trying to make a > > figure that pl...
2017 Nov 01
0
Scatterplot3d :: Rotating x tick labels by x degrees
Well, scatterplot3d might not allow it, but have a look at the second example for staxlab in the plotrix package. Jim On Wed, Nov 1, 2017 at 7:30 AM, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote: > > > On 31.10.2017 00:56, Alex Restrepo wrote: > ... > 45 degree rotation is not supported in base R graphics and scatterplot3d > uses that. >
2018 May 05
0
Adding Year-Month-Day to X axis
Hi Greg, The only reason I included the staxlab function in the plotrix library was to fit all the dates onto the axis. If you want to try it: install.packages("plotrix") Jim On Sun, May 6, 2018 at 9:02 AM, Gregory Coats <gregcoats at me.com> wrote: > Jim, Thanks for responding! > I am using the official R 3.5.0 for Mac...
2012 Feb 02
1
"shifted" bar chart / battleship curve
What I want to do is create a horizontal bar chart matrix for a set of data that have a common set of variables (e.g., % of As, % of Bs, etc.) listed on the Y-axis and groups (e.g., Classes) on the X-axis. The key here is that the bars for each individual class plot are "centered" rather than left or right-justified. In archaeology plots similar to this are called battleship curves or
2006 Apr 24
2
boxplots instead of a scatterplot
Dear R list, I am a newbie to R and programming itself, so my question may be easy to answer for you. I wanted to create a scatterplot and i used the following code: par(mar=c(10, 4.1,4.1,2.1)) plot(q$location,q$points, , las=2, cex.axis=0.5,xlab="", ylab="" ) #location are character strings, there are about 70 locations #points are numeric, there are more than 4 points for
2010 Sep 21
2
labels in (box)plot
Dear users, I would like all the ticks on a boxplot (x and y) to be labeled I have checked all the par() arguments but couldn't find what I'm looking for Here is an example to show it: df <- structure(list(SPECSHOR = structure(c(1L, 1L, 1L, 3L, 3L, 3L, 3L, 3L, 4L, 4L), .Label = c("cotau", "dibic", "eqgre", "gicam"), class =
2009 Jun 08
4
increase number of ticks on x axis of dates
My x axis is a series of daily dates (e.g., 01/01/2000, 01/02/2000, etc.) from 2000 to end of 2008. The default only gives me 4 ticks. I want more. Why doesn't this work? sdate<-as.POSIXct(strptime(date,format="%m/%d/%Y")) plot(ppt~sdate,type="l",ylim=c(0,47),col=1,lwd=1,pch=16,ylab="Salinity, psu",xlab="Year",las=1,main="Duck Key
2008 Jan 07
4
Orientation of labels on axes
http://www.nabble.com/file/p14664173/at-modality.png I created the above image with R and I have one problem left: Some of the labels of the axes do not show up, probably because there's not enough space. I use the following code to create the plot: modality <- read.table("results.table", header=TRUE, sep=",") color <-
2011 Apr 14
4
Categorical bubble plot
Hi, I do not have much R experience just the basics, so please excuse any obvious questions. I would like to create bubble plot that have Categorical data on the x and y axis and then the diameter if the bubble the value related to x and y. Attached to the email is a pic of what I would like to do. I do hope someone can help me. -- Regards/Groete/Mit freundlichen Gr??en/recuerdos/meilleures
2017 Jul 13
0
How to make a figure plotting p-values by range of different adjustment values?
...risons in this family for(method in p.adjust.methods) { padjs[npadj]<-p.adjust(pval,method=method,n=5) npadj<-npadj+1 } plot(padjs,xaxt="n",main="P plot",xlab="Method",ylab="adjusted p values") abline(h=0.05,col="lightgray") library(plotrix) staxlab(1,at=1:8,labels=p.adjust.methods) Jim On Thu, Jul 13, 2017 at 12:53 AM, Kirsten Morehouse <kmoreho1 at swarthmore.edu> wrote: > Hi all, > > Thank you for taking the time to read my message. I'm trying to make a > figure that plots p-values by a range of different adjustment...
2007 Dec 09
3
Barchart, Pareto
Hello Well I am relatively new so some of these issues may not fall under the subject that I have used. 1. How do I do a Pareto. Following is the approach I took. My data looks like this df2_9 Reaason.for.failure Frequency 1 Phy Conn 1 2 Power failure 3 3 Server software 29 4 Server hardware 2 5 Server out of mem 32
2010 Mar 01
3
setting the steps for x axis labels on plot
Hello, I'm new to R, I've been working with it for the last 2 weeks. I am plotting some data and not getting the labels on the x axis I am expecting on my plot. my code reads #hours in the day h <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) #hp is a data frame with a pivot table of 25 columns (label and data for 24 hours) plot(h, as.matrix(hp[1,2:25]),
2010 Oct 07
2
text/mtext axis labels on graphs
Hello everyone I have problem with axis labels on graphs, I have my code as below: plot(0,0,xlim=c(1,ncol(PA)),ylim=c(1,nrow(PA)),main="Stratigraphic Range",xlab="Time Bins",ylab="Taxa",cex.axis=1.5,cex.lab=2,cex.main=2.5,mgp=c(5,1.5,0),xaxt="n") text(1:(length(strat_name)), y= 0, adj=1, srt=45,labels=strat_name,xpd=TRUE, cex=1) #adds text to x