Displaying 20 results from an estimated 6000 matches similar to: "symbols: zero radius circles are drawn."
2003 Jun 30
1
symbol size on a plot
Hi,
I would like to get from a plot the size of the symbols plotted.
Imagine I have the following plot function :
plot(1:2,1:2, pch=15, cex=4)
I would like the get the values SIZE1 and SIZE2 so that if I plot the
following rectangle :
rect(1.5,1.5, 1.5+SIZE1, 1.5+SIZE2) then the size of this square is
exactely the same as the one of the symbols that have been plotted.
Thanks for any idea.
--
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)
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
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:
2007 Jul 24
1
How to add circular text for a graph with concentric circles
Dear R experts,
I am plotting the population of students who live in a city, and in
successive circular bands made of the contiguous districts that surround
the city. This is a stylized figure, where I specify the area of each
successive circle based on the cumulative population of students. I want
to compare two sets of concentric circles across different populations -
such as 'All
2017 Dec 29
0
Draw Overlapping Circles with shaded tracks
Hi Abou,
Without an illustration it's hard to work out what you want. here is a
simple example of two circles using semi-transparency. Is this any
help?
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()
2017 Jun 25
0
vertical semi-circles in R
Hello,
I'm not the greatest graphics programmer but is this it?
#install.packages("shape")
library(shape) # for function plotcircle
plot(0,0,col="white")
segments(0,0,0.3,0.3)
segments(0.3,0.4,0.3,0.3)
segments(0.3,0.4,0,0.7)
segments(0,0.7,0,0.6)
segments(0,0.0,0,0.1)
plotcircle(r = 0.25, mid = c(0,0.35), from = pi/2, to = -pi/2)
Note: you say you've tried
2011 Mar 09
1
How does the cex parameter scale circles?
I'm wondering how the cex parameter is used to scale circles (i.e. does it scale the radius, diameter, area, circumference, etc.?). In my case I'm using lattice with filled circles (pch=19).
Based on example, it looks like R scales the radius of the circle:
library(lattice)
dta<-data.frame(x=rep(1,6),y=rep(1,6),sz=c(1,2,4,8,16,32))
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
2017 Dec 29
2
Draw Overlapping Circles with shaded tracks
Dear All:
I am wondering if there is a way in R to draw these two circles with shaded
tracks in both circles using R, and make both circles uncovered. I am
trying to make it in MS words, but I could not. Your help will be highly
appreciated.
In my previous post I added the image of the two circles, but the post
never published. I just thought to resent the post again without the image.
with
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
2017 Jun 25
3
vertical semi-circles in R
Dear useRs,
I am to teach my students some drawing techniques in R. I started shape of an handle by using the following codes;
>plot(0,0,col="white")
>segments(0,0,0.3,0.3)
>segments(0.3,0.4,0.3,0.3)
>segments(0.3,0.4,0,0.7)
>segments(0,0.7,0,0.6)
>segments(0,0.0,0,0.1)
The coding will draw a section of a handle. Now I want to draw semi circles of radius 0.05
2006 Nov 07
2
Draw a circle with a given radius in an existing map
I have drawn a map in which the X and Y axes are latitude and
longitude. Now I need to draw one circle on the map - the center is a
point with specific latitude and longitude, but the challenge is that
the radius is in miles. Is there a way to do this? I'd very much
appreciate your response.
XM
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,
2010 Nov 03
4
Drawing circles on a chart
Dear Group,
I have the following data matrix which is a timeseries.
> dput(tData)
structure(list(A = c(0.2, 0.13, 0.05, 0.1, 0.02, 0.18, 0.09,
0.06, 0.13), B = c(0.15, 0.06, 0.09, 0.02, 0.03, 0.12, 0.01,
0.15, 0.06), C = c(-0.1, 0, -0.07, -0.06, -0.05, -0.05, -0.06,
-0.08, -0.07), D = c(-0.15, -0.05, -0.1, -0.03, -0.13, -0.04,
-0.1, -0.04, -0.15), E = c(-0.17, -0.16, -0.08, -0.07, -0.09,
2006 Nov 07
1
Re : Draw a circle with a given radius in an existing map
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20061107/01cea378/attachment.pl
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
2008 Jun 25
1
avoid using Dingbats symbols for points()
Hi,
I came across with a tiny problem.
E.g.:
pdf()
plot(1:5)
points(2, 3, cex=10, pch=21, bg="grey", lwd=0.3)
points(2, 4, cex=1, pch=21, bg="grey", lwd=0.3)
dev.off()
If I execute this I'll get a nice PDF. Fine.
But I want to edit this PDF with let's say by using Adobe Illustrator.
If I try to open it Illustrator shows up an error message:
Missing Type 1 fonts
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