Displaying 20 results from an estimated 80 matches for "clockwise".
2009 Oct 30
2
polar.plot
...n a polar plot, but with different colors so I can indicate the
two directions. I'm using polar.plot from the plotrix library. How can I add
a second "b" and "dir.b" series to a polar.plot?
library(plotrix)
a = 3
dir.a = 85
b = 4
dir.b = 250
polar.plot(a, dir.a, start = 90, clockwise = T, show.grid.labels = T,
radial.lim=c(0,5), line.col=2, lwd=2)
2 - Which parameter in polar.plot can I use to set the orientation for the
grid labels which seem to default at 90 in my example above?
Thanks,
Tony
[[alternative HTML version deleted]]
2010 Mar 18
5
can I rotate a matrix
useR's,
I want to be able to rotate a matrix 90 degrees, clockwise. For example,
> mat
[,1] [,2] [,3]
[,1] 1 2 1
[,2] 3 2 6
[,3] 4 5 3
I want to rotate it, so that it looks like this...
[,1] [,2] [,3]
[,1] 4 3 1
[,2] 5 2 2
[,3] 3 6 1
Does anyone know a quick and straightforward way to do this?...
2007 Aug 20
1
polar.plot orientation and scale in plotrix
Hello all-
I would like to orient my polar.plot (from package plotrix) so that the
circular scale runs clockwise and the origin (ie. 0 degrees) starts at the
top of the plot. The defaults of running the scale counter-clockwise and
beginning with 90 degrees at the top of the graph seems counter-intuitive to
me.
I'm using R 2.5.0, and plotrix version 2.2-4.
Many thanks,
Tim
[[alternat...
2006 Jan 18
6
some EPS rotated in journal preview
I am trying to send a manuscript to a journal.
One of the figures build by R is in the right orientation and 4 are rotated clockwise 90 deg in the preview.
I used the right click save to PS option and I used the command line
postscript("c:/temp/fig04.eps",bg="transparent",onefile = TRUE ,pointsize=20,paper = "letter",height=8,width=8,horizontal=FALSE,family = "Helvetica", font = "H...
2011 Mar 13
2
XP not obeying Samba file perms
...ist,
I have an unusual problem concerning the Windows XP "Rotate" image
explorer shell extension. I have a share called "Archives" defined with
a number of sub-directories. Whilst I have read/write permission to all
directories, I am unable to use the Windows XP "Rotate Clockwise" or
"Rotate Counter Clockwise" image command on JPG's contained within those
directories - error is "file may be in use or directory may be read
only". That is, until I read the files into Photoshop and write them
back out again. Then the "Rotate" shell exte...
2010 Mar 10
1
pie EPS BB
...x. This is the puzzle I have not been able
to solve.
Here is an example of the sort of thing I have been trying.
pcts <- c(3.0,2.0,0.4,10.0,12.0,3.0,39.0,14.0,7.0,9.6)
postscript("piecharttest.eps",horizontal=FALSE,
paper="special",width=3.0,height=3.0)
pie(pcts, clockwise=TRUE, labels=rep(NA,10), radius=1.0)
dev.off()
With
pie(pcts, clockwise=TRUE, labels=rep(NA,10), radius=1.0)
lines(c(-1,1,1,-1,-1),c(-1,-1,1,1,-1))
I can see that the chart exactly fits inside a box with
side 2 and centre (0,0). So far so good. But this box is
not centred in the X-window devic...
2009 Dec 04
2
[ggplot2] Wind rose orientation
...ore structured way.
A question. I'm making a wind rose that I'd like to be oriented with
due north straight up. I've discovered that the orientation is
sensitive to how north is represented. When north is represented as
0, the orientation looks to be shifted just a bit counter-clockwise,
perhaps 10 degrees. When north is represented as 360, the plot is
shifted clockwise, but past the point where north is straight up. How
to get north straight up?
I've read the book (very nice) and have skimmed through the
documentation without finding what I need. Any help much app...
2018 Mar 30
3
getting all circular arrangements without accounting for order
Dear friends,
I would like to get all possible arrangements of n objects listed 1:n on a circle.
Now this is easy to do in R. Keep the last spot fixed at n and fill in the rest using permuations(n-1, n-1) from the gtools package.
However, what if clockwise or counterclockwise arrangements are the same? I know that half of the above (n - 1)! arrangements are redundant.
Is there an easy way to list these (n-1)!/2 arrangements?
I thought of only listing the first half from a call to permuations(n - 1, n - 1), but while this holds for n = 4, it does n...
2003 Oct 16
2
Interpolation of azimuth values
Hello
I will make an interpolation of data which represents azimuth direction
( angle from north in clockwise direction) values.
But there is a problem.
Say, for instance, while 1 and 359 indicate somewhat same direction,
interpolation puts values
in the range from 1 to 359. What can I do to solve the problem ?
Anything you offer ?
thanks in advance
Ahmet Temiz
General Directory of Disaster Affairs...
2010 Dec 08
2
piechart
...h smaller radius in the piechart,
see below.
Thanks in advance, Sybille
pie(rep(1,12), col=rainbow(24), radius=0.9, labels=
c("J","F","M","A","M","J","J","A","S","O","N","D"),clockwise=T)
points (0,0,col="black",cex=20,pch=1
--
-------------------------------------------------
UDATA Umweltschutz und Datenanalyse
Hydrologie, Klimafolgenforschung, Boden- und Grundwasserschutz
Carl-Sch?ller-Str. 30 1/3, 95444 Bayreuth
www.udata.de
Tel. 0921/78638573 (Durchwahl)
wendel...
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 "info",...
2003 Aug 15
0
Re: [R} stars graphs
I thought about that star graph again, and realized that it would be quite
a handy thing for visualizing cyclic data like time or compass direction.
Here is a cleaned up (and renamed) version to do a polar plot that starts
at the right and goes counterclockwise or a 24 hour clock plot that starts
at the top and goes clockwise. There are probably other varieties that
would be interesting.
Jim
-------------- next part --------------
# scales a vector of numbers to a new range
rescale<-function(x,newrange) {
if(is.numeric(x) && is.numeric(ne...
2004 Jun 14
2
ordering points as vertex of a polygon
...s of
a polygon:
> x <- c(5,4,5,9,6,6,4,7,10,7,10,4,10)
> y <- c(6,3,2,6,3,7,5,4,4,7, 5,4, 6)
I would like to plot the following graph:
> plot(x,y)
> ord <- c(7,12,2,3,5,8,9,11,13,4,10,6,1)
> polygon(x[ord],y[ord])
How I can obtain the above ordering (in the example an anti-clockwise
ordering) such that I can use polygon() to connect the points?
I searched previous messages but I did not find any relevant to this
problem.
Thanks,
Luca
+-----------------------------------------------------------------------+
| Dr. Luca Scrucca...
2007 May 29
2
pie initial angle
Dear all,
I'd like to produce a simple pie chart for a customer (I know it's bad but
they insist), and I have some difficulties setting the initial angle.
For example:
pie(c(60, 40), init.angle=14)
and
pie(c(80, 20), init.angle=338)
both present the slices in the same direction, where:
pie(c(60, 40))
pie(c(80, 20))
present the slices in different directions.
I read everything I
2010 Mar 24
2
Multi-panel Pie Charts.
...0
ProdC Mar 20
ProdC Apr 40
ProdD Jan 10
ProdD Feb 10
ProdD Mar 5
ProdD Apr 10
R Code: as it is from the book,
library(lattice)
library(grid)
library(gridBase)
panel.piechart <-
function(x, y, labels = as.character(y),
edges = 200, radius = 0.8, clockwise = FALSE,
init.angle = if(clockwise) 90 else 0,
density = NULL, angle = 45,
col = superpose.polygon$col,
border = superpose.polygon$border,
lty = superpose.polygon$lty, ...)
{
stopifnot(require("gridBase"))
superpose....
2008 Feb 21
2
triangle.plot - change the axes orientation
Hello, I need to chenge axes orirentation in triangle plot. (function
triangle.plot in ade4 package)
I want to plot elasticities of some species in demographic triangle, where
axes values commnly increace "clockwise".
If some better imangination is needed, see
http://www.open.ac.uk/science/biosci/personalpages/j.silvertown/pdfs/Silvertown%20et%20al.%201993.pdf
I am sorry if I just can't see some simple way or some argument in hlep
file. Do you know how to solve my problem please? Or do you know about...
1999 Aug 30
1
convex hulls
Does anybody know if there are functions to:
1. Define a convex hull on a space with more
than 2 dimensions? chull just works for a plane.
2. Numerically select elements within a given complex
hull.
Thanks!
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2002 Jan 30
1
Rotation of axis labels
Hi all,
I can I rotate the x-axis labels 45 degree in clockwise direction? I`ve
tried
> axis(1, ..., las=2)
but this gives labels vertical to the axis, and las=0 or las=1 always
parallel axis labels.
Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/...
2010 Jan 13
1
rotate y axis label and resize its font
Dear ,
As a newbit to R learning boxplot,
please kindly share how to rotate y axis lable by 90 degrees or 180
degrees clockwise.
Also, please advise how to resize the label font and change its color.
Thank you
Elaine
[[alternative HTML version deleted]]
2009 Oct 25
1
rotate levelplot
...grids
on a rectangular map.
I used the code below to plot, but it gives me the map with the 10
columns as y-axis, and the 5 rows as the x-axis, and the (0,0) point
is at the usual bottom left hand corner. My map starts with the (0,0)
at the top left hand corner.
How can I rotate the map 90 degrees clockwise so the (0,0) starts at
the top left? That means I need the 10 columns to be x-axis. I cannot
transpose the matrix because the map would be laterally flipped over.
levelplot(quadsec.mat, colorkey=list(space="bottom"), scales=list
(tick.number=10), aspect=c("iso"))
Thanks, I'...