Displaying 20 results from an estimated 1174 matches for "angles".
Did you mean:
angle
2016 Apr 27
4
polygon angle option perpendicular to axis
I am trying to use the angle option in polygon to create polygons filled with horizontal and vertical lines. The polygons I am crating are irregular and it the angle function appears to set the angle of the shading perpendicular to the polygon sides rather than perpendicular to the axes. Is there any way to set the angle relative to the axes rather than relative to the polygon sides?
2010 Dec 18
1
Can I make my colnames bold?
Hello forum! As the subject indicates, I am trying to make a barplot and
would like my column names to be in bold. Is this possible in R without
having to make my column names in mtext? Any help would be much
appreciated. The code I am using is as follows.
par(mar=c(3,8,2,2))
par(adj=.5)
par(font=2)
par(oma=c(3,3,3,3))
par(xpd=TRUE)
Blot<-matrix(c(25.2995, 0.7625, 25.6135, 36.5770,
2000 Nov 20
1
Bug in stars.R (PR#739)
...emp.loc.1, temp.loc.2), ncol = 2)
}
else {
if (!is.matrix(locations) || ncol(locations) != 2)
stop("locations must be a 2-column matrix.")
loc <- .Alias(locations)
}
if (n.loc != nrow(loc))
stop("number of rows of locations and x must be equal.")
angles <- if (full)
seq(0, 2 * pi, length = n.seg + 1)[-(n.seg + 1)]
else if (draw.segments)
seq(0, pi, length = n.seg + 1)[-(n.seg + 1)]
else seq(0, pi, length = n.seg)
if (length(angles) != n.seg)
stop("length(angles) must be the same as ncol(x)")
x[is.na(x)] <- 0...
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
...tter:
I would like to use a command like this:
plot(c(1,8), 1:2, type="n")
polygon(1:7, c(2,1,2,NA,2,1,2),
col=c("red", "blue"),
# border=c("green", "yellow"),
border=c(1,10),
lwd=c(1:10))
To create two triangles, with different line widths.
But the polygon command doesn't seem to recycle the "lwd" parameter as it
does for the col, lty, and the border parameters.
I would like the resulting plot to look like what the following code will
produce:
plot(c(1,8), 1:2, type="n")
polygon...
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
...tter:
I would like to use a command like this:
plot(c(1,8), 1:2, type="n")
polygon(1:7, c(2,1,2,NA,2,1,2),
col=c("red", "blue"),
# border=c("green", "yellow"),
border=c(1,10),
lwd=c(1:10))
To create two triangles, with different line widths.
But the polygon command doesn't seem to recycle the "lwd" parameter as it
does for the col, lty, and the border parameters.
I would like the resulting plot to look like what the following code will
produce:
plot(c(1,8), 1:2, type="n")
polygon...
2010 Jul 28
1
Help with specifiying random effects in lmer - psychology experiment
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable;
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
2016 Apr 28
1
polygon angle option perpendicular to axis
The angle is not based on the polygon edges, but it can seem that way if you do not use the asp=1 argument in your plot. Try this example,
> plot(1:10, 1:10, type='n')
> x <- c(1, 3, 5, 3)
> y <- c(3, 5, 3, 1)
> polygon(x, y, angle=0, density=10)
> polygon(x, y + 4.5, angle=45, density=10)
> polygon(x + 4.5, y + 4.5, angle=90, density=10)
> polygon(x + 4.5, y,
2016 Apr 28
0
polygon angle option perpendicular to axis
Tena koe Simon
plot(1:10, 1:10, type='n')
polygon(c(2,3,6,8), c(2,5,5,3), density=20, angle=90)
polygon(c(2,3,6,8), 5+c(2,5,5,3), density=20, angle=0)
I don't understand your problem. Perhaps if you "provide[d] commented, minimal, self-contained, reproducible code" it would help.
HTH ....
Peter Alspach
-----Original Message-----
From: R-help [mailto:r-help-bounces at
2017 Jun 14
4
[FORGED] Re: draw stripes in a circle in R
...(x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
> density=NA, angle=45, lwd = 1 )
> {
> xylim <- par("usr")
> plotdim <- par("pin")
> ymult <- getYmult()
> angle.inc <- 2 * pi/nv
> angles <- seq(0, 2 * pi - angle.inc, by = angle.inc)
> if (length(col) < length(radius))
> col <- rep(col, length.out = length(radius))
> for (circle in 1:length(radius)) {
> xv <- cos(angles) * radius[circle] + x
> yv <- sin(angles) * rad...
2011 Jun 09
0
Help creating a scatterplot with errorbars using gplot
I am having a problem creating a scatterplot with error bars using gplot.
This is only my second day using R so I am very much a newbie.
My x-values (OD600) are:
0.00400000 0.01866667 0.04733333 0.08733333 0.22466667 0.42400000 0.82066667 1.39233333 1.61100000
My y-values (cellconc) are:
2e+06 5e+06 1e+07 2e+07 5e+07 1e+08 2e+08 5e+08 1e+09
And my standard deviations (stdev) are:
0.001154701
2024 Nov 03
2
RStudio crashes with segmentation fault on F41
Thanks, I?aki, for your answer. Yes, I do have a GPU:
NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.35.03
And no progress:
$ rstudio GSK_RENDERER=ngl
[18088:1103/205442.538796:ERROR:gl_factory.cc(120)] Requested GL
implementation (gl=none,angle=none) not found in allowed
implementations:
[(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
2024 Nov 03
1
RStudio crashes with segmentation fault on F41
Thanks, but unfortunately no progress:
$ GSK_RENDERER=ngl rstudio
[19496:1103/210330.025303:ERROR:gl_factory.cc(120)] Requested GL
implementation (gl=none,angle=none) not found in allowed
implementations:
[(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[19496:1103/210330.028349:ERROR:viz_main_impl.cc(198)] Exiting GPU
process due to errors during initialization
Segmentation fault (core
2016 Apr 28
1
polygon angle option perpendicular to axis
Thanks for the question. Here is a sample of the code for my plot:
Top = c(34, 39, 42, 45, 46, 41, 41, 40, 43, 38, 33, 33)
Bottom = c(24, 29, 32, 36, 32, 34, 32,41, 40, 39, 29, 24)
plot(1,1, col = "white", xlim = c(1.3,11.7), ylim = c(0,80), axis = FALSE, xaxt = "n")
axis(1, at = c(1:12))
polygon(c(c(1:12),c(12:1)), c(top, bottom), col =
2017 Jun 14
0
draw stripes in a circle in R
...and edit
draw.circle2 <- function (x, y, radius, nv = 100, border = NULL, col = NA, lty = 1,
density=NA, angle=45, lwd = 1 )
{
xylim <- par("usr")
plotdim <- par("pin")
ymult <- getYmult()
angle.inc <- 2 * pi/nv
angles <- seq(0, 2 * pi - angle.inc, by = angle.inc)
if (length(col) < length(radius))
col <- rep(col, length.out = length(radius))
for (circle in 1:length(radius)) {
xv <- cos(angles) * radius[circle] + x
yv <- sin(angles) * radius[circle] * ymult + y...
2002 Mar 21
1
legend - bug with argument angle (PR#1404)
When legend() is used with the angle argument as follows, not only the
boxes beside the legend text, but also the whole legend box is filled
with shading lines.
I think this is not intended:
plot(1:10)
legend(8, 4, c("A", "B"), angle=c(10, 80), fill=NULL, density=20)
I'd suggest as a fix (legend.R of R-1.5.0):
25c25
< rect2 <- function(left, top, dx, dy,
2024 Nov 03
1
RStudio crashes with segmentation fault on F41
It is unlikely to be a packaging issue. I suggest you open a bug report
here: https://github.com/rstudio/rstudio/issues.
I?aki
On Sun, 3 Nov 2024 at 22:04, Paul Smith <phhs80 at gmail.com> wrote:
> Thanks, but unfortunately no progress:
>
> $ GSK_RENDERER=ngl rstudio
>
> [19496:1103/210330.025303:ERROR:gl_factory.cc(120)] Requested GL
> implementation
2016 Apr 28
0
polygon angle option perpendicular to axis
Filling polygons with lines is a throwback to the time when the height
of quality graphics was the mechanical pen plotter (a device that used
a pen in a mechanical arm to draw the plot on a piece of paper).
Computing and printing technology has advanced quite a bit from that
day, so you may want to reconsider why you want polygons filled with
lines instead of just a solid color (and I consider
2024 Nov 03
1
RStudio crashes with segmentation fault on F41
BTW, meanwhile, you can install rstudio-server and use RStudio in your
browser at http://localhost:8787
I?aki
On Sun, 3 Nov 2024 at 22:10, I?aki Ucar <iucar at fedoraproject.org> wrote:
> It is unlikely to be a packaging issue. I suggest you open a bug report
> here: https://github.com/rstudio/rstudio/issues.
>
> I?aki
>
> On Sun, 3 Nov 2024 at 22:04, Paul Smith
2017 Jun 14
3
draw stripes in a circle in R
> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>
> I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one.
> --
> Sent from my phone. Please excuse my brevity.
>
> On June 14, 2017 7:57:41 AM PDT, jean-philippe <jeanphilippe.fontaine at