similar to: (PR#849)

Displaying 20 results from an estimated 20000 matches similar to: "(PR#849)"

2013 Jan 12
4
Drawing a dotted circle.
Hi, I am trying to draw a dotted circle by using symbols command: symbols(0, 0, circles = 1, inches = FALSE, fg = 'gray', lty=2) But it gives me a solid line. I was just wondering whether am I making a mistake? Ved [[alternative HTML version deleted]]
2009 Apr 27
1
problem with symbol function
Hi all, I use the symbol functions to draw circles. But the argument lty does not work on windows but works correctly on my macbook: x <- -4:4 y <- -4:4 plot(x,y,type="n") symbols(0, 0, add = TRUE, circles = 1, inches = 1, fg="black", lty="solid") symbols(0, 0, add = TRUE, circles = 1, inches = 2, fg="black", lty="dashed") The
2012 Aug 11
1
device "mismatch", coordinates trouble with X11 and pdf devices
Greetings. I'm trying to understand a problem on a Dell Laptop. Details below, also uploaded the R working example that I pasted below. http://pj.freefaculty.org/scraps/testSymbols.R > sessionInfo() R version 2.15.1 (2012-06-22) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5]
2009 Dec 29
1
plotting circles with symbols()
Hello, I am not able to plot a circle of a given radius using symbols(). In the example below, the circle appears too large: plot(0, 0, xlim = c(-1, 1), ylim = c(-1, 1)) symbols(0, 0, circles = 1, inches = FALSE, add = TRUE) What's happening? Ery
2003 Nov 26
1
wishlist item: symbols() to accept asp argument? (PR#5328)
Here is a potential wishlist item for adding an argument (asp) to symbols(). The following code produces a postscript file with two pages; both should show a circle of radius 2 units. Horizonal and vertical arrows are drawn to check that the circle is of the correct radius; in the first plot, the circle is wrong. To fix this, I found that I needed to first set up the plot bounds, using xlim,
2005 Nov 29
3
drawing a circle using symbols
Dear friends, I was drawing a circle with centrum in (1,-1) and radius 5 to show my girl that the line y=3*x+1 goes through (1,4) and (-2,-5) of the circle, but on Windows XP, R 2.20 the drawing was not good at all, and the known solutions were not shown in the graph. I guess I got it wrong? Is this use not intended ? Best wishes Troels Ring, MD Aalborg, Denmark
2009 Sep 07
2
Very inaccurate circles
Hello, Please take a look at the attached plot and let me know if this is normal. The circle has radio I am using R 2.9.2 inside OS X Leopard. The plot was generated with: png('bizarre_circle.png') plot(c(-5,0,0,5), c(0,5,-5,0)) symbols(0,0, circles=c(sqrt(25)), inches=FALSE, add=TRUE) dev.off() If I resize the x11's plot window I can manage to make the circle pass through all the
2017 Dec 31
1
Draw Overlapping Circles with shaded tracks
Dear All: Thank you very much for all of you. I just have one more thing. Is there a way to fill the borders with small dots, may be different sizes. I tried to do it, but it looks ugly. Here what I tried: library(plotrix) plot(0:10, 0:10, type="n",axes=FALSE,xlab="",ylab="") #### 0:5, draw.circle(4,5,radius=3,border="#ff0000aa", lwd=75)
2017 Dec 31
0
Draw Overlapping Circles with shaded tracks
Another solution: library("HelpersMG") plot(0:10,type="n",axes=FALSE,xlab="",ylab="", asp=1) ellipse(center.x = 3, center.y = 5, radius.x = 5, radius.y = 5, lwd=10, col=NA, border=rgb(red = 1, green = 0, blue=0, alpha = 0.5)) ellipse(center.x = 8, center.y = 5, radius.x = 5, radius.y = 5, lwd=10, col=NA, border=rgb(red = 0, green = 1, blue=0, alpha =
2017 Dec 31
2
Draw Overlapping Circles with shaded tracks
That code nees the plotrix package: library(plotrix) pdf("circles.pdf") plot(0:10,type="n",axes=FALSE,xlab="",ylab="") draw.circle(4,5,radius=3,border="#ff0000aa",lwd=10) draw.circle(6,5,radius=3,border="#0000ffaa",lwd=10) dev.off() On Friday, December 29, 2017, 6:06:32 PM EST, Jim Lemon <drjimlemon at gmail.com> wrote:
2012 Jul 18
3
'symbols' not plotting correct circle radii
Hi there. I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect. It seems to happen with a single circle too: Symbols ( 0, 0, circles = 40, xlim = c(-40, 40), ylim= c(-40, 40)) If I put a ruler up to my monitor (technology!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15... I
2003 Mar 31
3
monte carlo method for circle area
Hello everyone I hope Im not bothering you all again. I have just begun to use R and so Im not yet familiarized with it.. I ve got an assignment which consists in calculating the area of a circle given a certain radius and center using the monte carlo method, which means that I have to plot a circle given its parameters. Limit the area inside it...with as many sample points as possible...and
2010 Apr 14
1
Problems getting symbols() to show table data
Hello, I am trying to create a graphic to help me visualise data. A (very simplified) sample of the data is http://n4.nabble.com/file/n1839676/circle_data.txt circle_data.txt : Aug-07 Nov-07 Feb-08 data1 1 1.5 -1 data2 1 1.2 1.6 data3 1.3 1.4 1.8 data4 1.3
2007 Mar 09
4
About "cex=": how to improve resolution?
Hi, I need to plot a graph with a fixed circle and with a series of point of different size. Here is a "simplified" example: angle<-pi/180*c(0:360) x<-seq(0,2,by=0.2) y<-seq(0,2,by=0.2) z<-seq(0,1,by=0.1) par(pty="s") plot(-2:2,-2:2,type="n") lines(cos(angle),sin(angle)) points(x,y,cex=z) The size of the points compared to the circle (of radius 1) is
2008 Dec 15
1
Semi-random movement inside a circle
Dear list, I am trying to program semi-random movement within a circle, with no particles leaving the circle. I would like them to bounce back when they come to close to the wall, but I don't seem to be able to get this right. Would somebody kindly give me a hint ? This is my code so far, the particle starts at some point and moves towards the wall, but I don't get the "bouncing
2009 May 21
1
size of point symbols
Dear list, This might be a topic for r-devel but i may be missing something obvious. I don't understand the rationale in the absolute sizes of the point symbols, and I couldn't find it documented. The example below uses Grid to check the size of the symbols against a square of 10mm x 10mm. > checkOneSymbol <- function(pch=0){ > gTree(children=gList( >
2009 May 21
1
size of point symbols
Dear list, This might be a topic for r-devel but i may be missing something obvious. I don't understand the rationale in the absolute sizes of the point symbols, and I couldn't find it documented. The example below uses Grid to check the size of the symbols against a square of 10mm x 10mm. > checkOneSymbol <- function(pch=0){ > gTree(children=gList( >
2008 Dec 15
1
Movement within a circle
Dear list, ? I am trying to program semi-random movement within a circle, with no particles leaving the circle. I would like them to bounce back when they come to close to the wall, but?I don't seem to be able to get this right. ?Would somebody?be able to?give me a hint ? This is my code so far, the particle starts at some point and moves towards the wall, but I don't get the
2017 Oct 24
3
draw a circle with a gradient fill
Hi all,I would like to draw a simple circle where the color gradient follows the rule color = 1/(r^2) where r is the distance from the circle. I would also like to add a color bar with values going from -40 to -110 (and associate those with the color gradient that fills the circle). So far I experiemented with draw circle
2013 Jan 20
2
"user units" in plotrix
hi all - i'm having some difficulty figuring out how to convert between "user units" (which i can't find a definition for in the plotrix package) and either (a) device units (e.g. inches with PDFs) or (b) user coordinates along any particular axis. as an example, suppose i set up a PDF device with inches, the device has both outer and inner magins, and the plot region has