search for: horiz

Displaying 20 results from an estimated 282 matches for "horiz".

1999 Dec 11
2
hist() with horiz=TRUE does not give horiz. plots (PR#372)
Full_Name: Fran Rizzardi Version: 0.90.0 OS: Solaris, NT 4.0 Submission from: (NULL) (128.32.135.223) If you use the horiz= option with hist() you get the message: Warning: parameter "horiz" couldn't be set in high-level plot() function. and the plot comes out vertical. The documentation says this option comes from barplot() and it does work correctly in barplot(). This message comes whether horiz= i...
2008 Jun 02
1
Plotting horizontal dendrograms
I am using hclust and plot to produce dendrograms. Using my input data I am able to complete an analysis and obtain a vertical plot. I want to be able to plot the dendrogram horizontally.I am using version 2.6 of R and have updated my packages recently. Using the sample script for dendrograms I can produce a horizontal plot using the instruction horiz = TRUE in plot(). When I use the same instruction in my own script I get a warning message that horiz, and horizontal, are...
2012 Oct 05
1
avoid <<- in specific case
Hi all, I improved a function drawing horizontal histograms (code below) which uses barplot and works fine. It does,however, need to assign a function to the global environment to later find the actual location on the vertical axis, and not the number of bars used by barplot. Hopefully, running the examples below will illustrate that. As sa...
2010 Jan 12
1
barplot: border color when stacked
Dear R-users, I am using R version 2.10.1 under windows. In a barplot, I want to mark one of the bars with a special border color. For example: barplot(c(3, 7, 11), border = c(NA, "red", NA)) But how to do this when the bars are stacked? for example: barplot(matrix(1:6, ncol=3)) # border of second bar (i.e. the one with total height = 7) should be red again, I try: barplot(matrix(1:6,
2008 Jun 05
0
bug in barplot.default (graphics) (PR#11585)
...ils_1.1.1 svSocket_0.9-5 svIO_0.9-5 R2HTML_1.58= =20=20=20 [6] svMisc_0.9-5 svIDE_0.9-5=20=20=20 loaded via a namespace (and not attached): [1] tools_2.7.0 barplot.default <- function (height, width =3D 1, space =3D NULL, names.arg= =3D NULL, legend.text =3D NULL, beside =3D FALSE, horiz =3D FALSE, density =3D NU= LL, angle =3D 45, col =3D NULL, border =3D par("fg"), main =3D NULL, sub =3D NULL, xlab =3D NULL, ylab =3D NULL, xlim =3D NULL, ylim =3D NUL= L, xpd =3D TRUE, log =3D "", axes =3D TRUE, axisnames =3D TRUE, cex.axis = =3D par("cex.axis&...
2002 Dec 01
2
Quasi-bug in boxplot().
There seems to be a problem with partial matching of argument names in boxplot(), in respect of the "horizontal" argument. I don't recall seeing this issue discussed previously. My apologies if I am being redundant. (A scan of CRAN revealed that someone had experienced problems with the "horizontal" argument, but he was spelling it out in full, so that was a different issue.) If I...
1998 Jan 23
1
R-beta: image has white horiz lines
I have attached an image file created by R. The image has white horizontal lines between the cells. The image looks OK in the R Graphics window, but has the horiz lines when viewed in Ghostview (after using save.plot) or when printed out using print.plot. There appears to be a problem with the image code (maybe this will go away in the new version). I am running un...
2010 Nov 15
1
plot.dendrogram() plot margins
Hello, Is it possible to remove those extra margins on the "sample" axis from plot.dendrogram: par(oma=c(0,0,0,0),mar=c(0,0,0,0)) ddr<-as.dendrogram(hclust(dist(matrix(sample(1:1000,200),nrow=100)))) stats:::plot.dendrogram(ddr,horiz=F,axes=F,yaxs="i",leaflab="none") vs. stats:::plot.dendrogram(ddr,horiz=T,axes=F,yaxs="i",leaflab="none") What variable / line of code corresponds to this additional margin space? I would like to modify the code to remove the extra space and have that marg...
2009 Dec 08
1
histbackback function
Hi, I'm trying to recreate a sensitivity-specificity graph using the histbackback function. The only problem is that these graphs are typically drawn with vertical rather than horizontal bar plots (and the histbackback function only seems to work with horiz=TRUE argument, using "horiz=FALSE" doesn't work). Does anyone know if: 1) there's a different graphing function that would accomplish this graph? 2) if there isn't, is there a way to rotate the graph...
2002 May 13
3
Histograms rotated, side-by-side
Hi there, I am wanting to create 8 side-by-side histograms which have been rotated 90 degrees clockwise from how they usually sit.. all with the same scales. Is someone able to help me out? Thanks so much, Rachel Cunliffe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2005 Oct 23
1
Coloring leaves, twigs and labels in plot.dendrogram()
...FALSE, edge.root = is.leaf(x) || !is.null(attr(x, "edgetext")), nodePar = NULL, edgePar = list(), leaflab = c("perpendicular", "textlike", "none"), dLeaf = NULL, xlab = "", ylab = "", xaxt = "n", yaxt = "s", horiz = FALSE, frame.plot = FALSE, twig.col = NULL, lab.col = NULL, leaf.col = NULL, ...){ ############################## 80 Characters Wide ############################## plotNode <- function (x1, x2, subtree, type, center, leaflab, dLeaf, nodePar, edgePar, horiz = FALSE, leafcounter =...
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
...obvious when using multi line texts: There is no way to properly adjust text perpendicular to axis 2, for example. Best Jens Oehlschl?gel m <- matrix(1:9, 3) colnames(m) <- c("several\nlines", "several\nlines", "several\nlines") par(mfrow=c(2,2)) barplot(m, horiz=TRUE, axes=FALSE, axisnames=FALSE, main="las=0 adj=0.5 is fine") mtext(colnames(m), 2, at=seq(0.5+0.2, by=1+0.2, length=3), las=0, adj=0.5) barplot(m, horiz=TRUE, axes=FALSE, axisnames=FALSE, main="las=0 adj=1 is different") mtext(colnames(m), 2, at=seq(0.5+0.2, by=1+0.2, length...
2011 Jan 28
1
axis name editing
Dear All, I'm generating a heatmap, is there a way to make Y axis name display horizontally, X axis name display vertically? I tried using "horiz=TRUE": axis(1,at=1:dim(cor.meta.m)[1],labels=gsub("module","",pw.names),horiz=T RUE) but got warning message and the name is not displayed as I wish: Warning message: In axis(1, at = 1:dim(cor.meta...
2010 Dec 21
4
labels and barchart
...in order to allow labels to be visible in barplot. Is there any relation between the number of characters in a label and the second value of mar? Look at my example. x <- seq(20, 100, by=15) ety <- rep( "Effect on treatment group", times=length(x)) barplot(x, names.arg=ety, las=1, horiz=TRUE) Labels are not visible. But trial and error method with the second mar argument I get what I want. par(mar=c(3,12,2,1), cex=0.8) barplot(x, names.arg=ety, las=1, horiz=TRUE) I would like something like that: second.mar = max( nchar(ety) )/2 Taking the opportunity I have 2 another question...
2013 Jan 22
1
How to remove the vertical space between two graps
Hi, I have created a barplot using the following code. a<-c(11,23,15,34,42,31) m<-matrix(a,nrow=2) m[2,]<-(-1)*m[2,] par(mar=c(4,4,4,0)) barplot(m[2,],horiz=T) par(mar=c(4,0,4,2)) barplot(m[1,],horiz=T,col="black") and the plot obtained is shown in "plot1.tiff". I was not willing to see the gap (vertical space) between two graphs. How can I achieve it? Further I tried to achieve my goal in a single plot, for which I tried this...
2010 Apr 17
2
Interacting with dendrogram plots, locator() or click()
I would like to explore dendrogam plots interactively. For example, click on a node and return information about all of the children of that node. Is there a high level wrapper for locator() or click() that will return the nearest dendrogram node on a plot? If not, is there a way to obtain the [x,y] coordinates of all the nodes on a plot? Thanks, David David J. States, M.D., Ph.D. Professor
2004 Feb 05
2
Available in S-plus, also in R1.8.1?
Hello all, I'm looking for the R-equivalent of the S-option "Connect type: half horiz first". Link: http://miner.stern.nyu.edu/Splus/help/guihelp/__hhelp/connect_type.htm I'm plotting with type="s" or type="S"; this is giving me a stairstep starting, or ending with the value on the x-axis (as documented). But, I want the x-value in the middle of the ste...
2012 Apr 24
2
Positioning main title
Hello, I have a barplot where each row has quite long texts and I have used "par" to make some room in the left: par(mar=c(0, 17, 3, 0), oma=c(0, 0, 0, 0)) barplot2(prueba, main = l, col=colores, horiz=TRUE,las=1, cex.names=.7) My problem is that main text appears justified to the plot. I want to put it in the middle of the image, and find a way to sort it out with mtex par(mar=c(0, 17, 3, 0), oma=c(0, 0, 0, 0)) barplot2(prueba, col=colores, horiz=TRUE,las=1, cex.names=.7) mtext(l,side = 3, a...
2012 Oct 06
2
Expected number of events, Andersen-Gill model fit via coxph in package survival
...r of events # in using package "survival" for fitting the Andersen-Gill model require(survival) head(bladder2) # this is the data, in interval format # Fit Andersen-Gill model cphfit = coxph(Surv(start,stop,event)~rx+number+size+cluster(id),data=bladder2) # Choose some arbitrary time horizons t.horiz = seq(min(bladder2$start),max(bladder2$stop),length=6) # Compute the cohort expected survival s = survexp(~1,data=bladder2,ratetable=cphfit,times=t.horiz) # This are the expected survival values: s$surv # We are interested in the rate of events e.r = as.vector( 1 - s$surv ) # How doe...
2008 Jun 02
3
subject: horizontal text in barplot
I have a problem with the ylabs in barplot. When I draw the bars horizontal the text for the y axis is not drawn horizontal too. The text remains vertical. How can I change that. Thank's for your advice. There is an example below. ##Example plot.new() jib <- data.frame(c(1:15),c(11:25),c(15:1),c(25:11)) colnames(jib) <- c("eins","zwei",...