search for: drawn

Displaying 20 results from an estimated 1492 matches for "drawn".

Did you mean: drain
2011 Apr 15
3
Monte Carlo Simulation
Hello, R friends... I am very new to R, and I need some help. I am trying to construct a simulation for my dissertation. I need to create 1000 datasets of 1000 subjects with the following variables... Treatment variable - Drawn from a binomial distribution (1 run, prob=.13) Covariate 1 - Drawn from a normal distribution (mean=100, sd=16) Covariate 2 - Drawn from a normal distribution (mean=200, sd=9) Covariates 1 and 2 need to be correlated (say, r=.80) Covariate 3 - Drawn from a binomial distribution (1 run, prob=.5) Cov...
2005 May 05
3
documenation for arrows() is backwards (PR#7839)
...2.6.11-1.14_FC3) Submission from: (NULL) (193.62.199.8) help(arrows) says: """ arrows(x0, y0, x1, y1, length = 0.25, angle = 30, code = 2, col = par("fg"), lty = NULL, lwd = par("lwd"), xpd = NULL) ... If 'code=2' an arrowhead is drawn at '(x0[i],y0[i])' and if 'code=1' an arrowhead is drawn at '(x1[i],y1[i])'. If 'code=3' a head is drawn at both ends of the arrow. Unless 'length = 0', when no head is drawn. """ If you do: plot(c(-1, 1), c(-1, 1), col=0) ar...
2007 Feb 21
3
Different gridlines per panel in xyplot
In the example R script below, horizontal gray gridlines are drawn at y coordinates where the points are drawn with the code: panel.abline(h=y, v=xScale, col.line="gray") How do I change this so that the horizontal gray gridlines are drawn at y coordinates where the y labels are drawn? The challenge is that each panel has different y-ranges (in my rea...
2002 Jun 03
1
symbols: zero radius circles are drawn.
Hi, I don't think this is a bug, but I thought I'd mention it in case others think it is not correct... I guess it is probably just a rounding error. If I use symbols() to draw some circles, any circle with radius of zero gets drawn as a small circle. As an example: postscript(file="test.ps") symbols(1:9, rep(2,9), circles=seq(from=0.05, to=0.0, length=9), inches=FALSE, xlim=c(0, 10), ylim=c(1,3)) dev.off() The rightmost circle should be of radius 0, but looking at the plot it is drawn bigger tha...
2007 Dec 19
1
lattice: axes drawn when relation='free' or relation='sliced' but not when relation='same'
...anel. Instead, I get ticks on the left-hand side of only the panels in the leftmost column, and labels only on the right-hand side of the rightmost column. What can account for that? What seems especially peculiar is that when I change relation to 'sliced' or 'free', the axes are drawn as I want them to be drawn. The data that I'm plotting are numeric and range from -.3 to 1.9. I'm using R 2.6.1 and lattice 0.17-2 on Windows XP. Thank you, --John
2012 Jul 13
4
Side by side strip charts
Hi, I'm looking for some ideas on how to reproduce the attached image in R. There are three samples, each of size n = 10. The first is drawn from a normal distribution with mean 60 and standard deviation 3. The second is drawn from a normal distribution with mean 65 and standard deviation 3. The third is drawn from a normal distribution with mean 70 and standard deviation 3. http://r.789695.n4.nabble.com/file/n4636399/IMG_1306.jpg A...
2003 Oct 01
1
hypergeometric & population estimates
...ng maximum likelihood and 95%CL as -2LogLikelihoods. Below, I determined the population estimate using dhyper(x,m,n,k) and maximizing the density value as a function of n, but do not know how I should calculate MLE with this distribution. x <- 8 # number resighted caribou (white balls drawn) m <-11 # number collared caribou (white balls total) k <- 70 # number caribou seen (# balls drawn) n <- 1:500 # ?? unknown number of uncollared caribou (# black balls) d <- unlist(lapply(n, function(i) dhyper(x,m,i,k))) # density estimate for each value of n d...
2013 Jan 07
0
Plots not drawn with buffered Cairo 1.12
Hi! On Fedora 18 [1] and Arch Linux [2], using R 2.15.2, X11 plots are not drawn (i.e. the window stays blank) when using X11.options(type="cairo") and X11.options(type="dbcairo"). They are correctly drawn when using X11.options(type="nbcairo") and X11.options(type="xlib"), or after resizing the X11 window. The bug happens with Cairo 1.1...
2004 Nov 20
1
Error with strwidth after lattice graphic drawn
In platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 2 minor 0.1 year 2004 month 11 day 15 language R I'm getting an error when using strwidth after a lattice graphic is drawn: library(lattice) xyplot(runif(20) ~ runif(20)) strwidth('xxx') Error in strwidth("xxx") : invalid graphics state Any help appreciated. I have version 2.0.1 of grid and version 0.10-14 of lattice. -- Frank E Harrell Jr Professor and Chair School of Medicine...
2001 Jun 28
1
cvs010626 flickering borders before main window drawn
...showing up in cvs010626. Again the same VB3 application. The splash screen appears and the main window (which consists only of a bunch of buttons) is started to be prepared. In a flickering way many frames or borders appear (empty) and when finally the splash screen disappears the main window gets drawn correctly. Then the problem does not appear again during the same session. Normally the main window is supposed to appear after the splash screen is already destroyed. And so it was until wine010510.tar.gz. I guess that this is still work in progress. I'm not too much bothered but if the screen...
2011 Dec 18
1
gWidgets: how to remove that is box drawn when moving the mouse with pressed button
Hi, how can I omit the box drawn from the starting position to the current position of the mouse when clicking and it over a GTK graphics object? I have seen that in the 'playwith' package the box changes to an arrow when using the 'pan' button. But I do not find the corresponding line in the code to implement th...
2006 Dec 28
2
lattice xyplot: plot multiple lines with different colors
Hi everyone, I am using the lattice package to plot some simulation results, by using the function xyplot(). However, I cannot find a way to plot multiple lines within the same xyplot and to have each of the lines be drawn in a different color. This is what I am currently doing: xyplot(a + b + c ~ x, my_data, panel = panel.lines) but, of course, all lines are drawn in the same color. What I would prefer, would be to first print a single line in an xyplot and then add a new line, and so on (since I want to dyna...
2018 May 21
3
draw borders of bars inside of the rectangles in a barplot
Dear R-users, I want to draw a barplot with beside=TRUE. One halve of the bars are drawn with a border, while the other halve are drawn without a border (i.e. filled bars vs. non-filled bars next to each other). Because borders are drawn around the bars, doing this leads to one halve of the bars being wider than the other halve, expanding across the 0-point of the y-axis. This problem...
2003 May 13
1
several regression lines in panel of xyplot (trellis graphics)
Dear r-help, I need to draw xyplot() graphs with several regression lines: one line for the whole range of x (the variable on the horizontal axis) and two additional lines for subranges of x. Is it possible to make first regression line (panel.lmline(x,y,...);) to be drawn on the whole graph and regression lines of the subsets to be drawn only over their subsets? I have defined plot.panel=function(x,y,...){ panel.xyplot(x,y,...); panel.lmline(x,y,...); panel.lmline(x[1:9],y[1:9],...); panel.lmline(x[10:23],y[10:23],...); panel.grid(h=-1,v=-1,...); };...
2001 Dec 10
4
Box around legends (and postscript?)
...lame?) question. I have noted that when I produce a graph with multiple plots (e.g. 2x2 plots on the graphics device) where each plot has multiple series and a legend with reasonable amounts of text describing the series, the right hand side of the box surrounding the legend always seems to be drawn through the legend text when I write the output to a postscript file. The image displayed by the x11 device on screen seems fine, with the legend box drawn neatly around the legend text. I have tried altering the character size and location of the legend text inside the legend function (cex...
2003 Feb 05
4
barplot default colors
...I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn on the margins. The histograms were drawn by barplot(), and, IMHO, look rather hideous in the colors. Regards, Andy Andy I. Liaw, PhD Biometrics Research Phone: (732) 594-0820 Merck & Co., Inc. Fax: (732) 594-1565 P.O. Box 2000, RY84-16 Rahway, NJ 07065 mailt...
2003 Feb 05
4
barplot default colors
...I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn on the margins. The histograms were drawn by barplot(), and, IMHO, look rather hideous in the colors. Regards, Andy Andy I. Liaw, PhD Biometrics Research Phone: (732) 594-0820 Merck & Co., Inc. Fax: (732) 594-1565 P.O. Box 2000, RY84-16 Rahway, NJ 07065 mailt...
2012 Mar 28
3
Connect lines in a dot plot on a subject-by-subject basis
...up to five observations. The first five columns of mydata give the time of observation, columns 6-10 give the values at each time point. Some subjects have all data, some are missing values. The code I wrote to draw the plot is listed below. If you run the code you will see that (1) The few lines drawn are not drawn on a subject-by-subject basis, (2) not all lines are drawn. I hope someone can help me fix my code Thanks, John # Create a matrix to hold our data. mydata <- matrix(nrow=10,ncol=10) dimnames(mydata) <- list(NULL,c("time1", "time2", "time3", &quot...
2009 Nov 04
1
[Bug 24886] New: Cursor not drawn after a resent commit
http://bugs.freedesktop.org/show_bug.cgi?id=24886 Summary: Cursor not drawn after a resent commit Product: xorg Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at lists.freedesktop.org...
2011 Jan 25
1
dendrogram plot does not draw long labels ?
Hello, It seems that the plot function for dendrograms does not draw labels when they are too long. > hc <- hclust(dist(USArrests), "ave") > dend1 <- as.dendrogram(hc) > dend2 <- cut(dend1, h=70) > dd <- dend2$lower[[1]] > plot(dd) # first label is drawn > attr(dd[[1]], "label") <- "aaaaaaaaaaaaaaaaaa" > plot(dd) # first label is NOT drawn Is this expected ? Is it possible to force the drawing ? Thank you, Karl [[alternative HTML version deleted]]