Displaying 20 results from an estimated 97 matches for "perpendicular".
2010 Aug 23
4
Draw a perpendicular line?
Hi,
I am trying to draw a perpendicular line from a point to two points.
Mathematically I know how to do it, but to program it, I encounter some
problem and hope can get help. Thanks.
I have points, A, B and C. I calculate the slope and intercept for line
drawn between A and B.
I am trying to check whether I can draw a perpendicular...
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?
[[alternative HTML version deleted]]
2016 Apr 28
0
polygon angle option perpendicular to axis
...inimal, self-contained, reproducible code" it would help.
HTH ....
Peter Alspach
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Simon, Heather
Sent: Thursday, 28 April 2016 8:17 a.m.
To: r-help at r-project.org
Subject: [R] 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....
2016 Apr 28
1
polygon angle option perpendicular to axis
...lygon(c(c(1:12),c(12:1)), c(top, bottom), col = adjustcolor("#33a02c",alpha.f = 0.7) ,border = "#33a02c", lty = 4, density = 80, angle = 180)
I would like the hatched lines to all go in the same direction (parallel to the x-axis) so that I can layer another polygon on top with perpendicular hatches and you will be able to differentiate between the two.
-----Original Message-----
From: Peter Alspach [mailto:Peter.Alspach at plantandfood.co.nz]
Sent: Thursday, April 28, 2016 12:11 AM
To: Simon, Heather <Simon.Heather at epa.gov>; r-help at r-project.org
Subject: RE: polygon angl...
2007 Apr 28
3
Perpendicular symbol in plotmath?
Hey,
Does anyone know of an equivalent to the LaTeX \perp (perpendicular)
symbol for adding to R plots? Parallel is easy enough ("||"), but I
haven't been
able to find a way of adding perpendicular. The plotmath documentation
doesn't mention how to do it, so I'm inclined to think that it doesn't
exist - but surely there must be some way of ach...
2010 Oct 05
2
Plotting x-axis labels perpendicular to the axis
Hi,
The following command: axis(1, at= 1:50, labels= sampleNames(data)) produces
an X-axis with 50 ticks and labels drawn from the sampleNames namespace.
Problem is the labels at each tick are printed parallel to the x-axis and
thus run into each other. How do I specify for the labels to be printed
perpendicular to the x-axis?
Thanks in advance.
Anjan
--
===================================
anjan purkayastha, phd.
research associate
fas center for systems biology,
harvard university
52 oxford street
cambridge ma 02138
phone-703.740.6939
===================================
[[alternative HTML version dele...
2016 Apr 28
1
polygon angle option perpendicular to axis
...f Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Greg Snow
Sent: Thursday, April 28, 2016 9:50 AM
To: Simon, Heather
Cc: r-help at r-project.org
Subject: Re: [R] 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 ma...
2016 Apr 28
0
polygon angle option perpendicular to axis
...pr 27, 2016 at 2:17 PM, Simon, Heather <Simon.Heather at epa.gov> wrote:
> 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?
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-p...
2010 Mar 22
2
problem with abline and lines
Dear R users,
I need to plot to perpendicular straight lines. However, although I set the coefficients
so that the lines are perpendicular, they do not look to be so in the plot. Here is a minimal working example:
plot(x=c(-1, 1), y=c(-1, 1)); abline(a=0, b=1/sqrt(2)); abline(a=0, b=-1/sqrt(2))
Please tell me if the same problem is valid by...
2001 May 24
1
Labels perpendicular to axis
I would like to make my horizontal barplot vertical axis labels perpendicular to
the axis. I tried las=1, srt=90; I even tried yaxt='n' thinking I'd put the
labels in using mtext, but the axis continued to be drawn. Can anyone help me
with this? My barplot() statement looks like this:
barplot(height=foo$rebint[o1], names=foo$Unit[o1], horiz=TRUE,
col=mycolors[f...
2008 Mar 10
1
y label perpendicular to the y axis
Hi R-users:
We need to place the y label horizontally on a plot.
Instead of
|
l |
a |
b |
e |
l |
|__________
we want
|
|
label |
|
|
|______________
We thank you any advice.
Yours,
Juan Carlos Correa, Ph.D.
Profesor Asociado
Escuela de Estadística
Universidad Nacional-Sede Medellín
2012 Nov 25
3
Comparing linear regression coefficients to a slope of 1
...efault of zero.
I know this topic has been posted before, and I have tried to use the
advice given to others to fix my problem. I tried the offset command based
on one of these advice threads as follows:
Regression <- lm(y~x+offset(1*x))
but this resulted in a regression line that was plotted perpendicular to
the data when added with the abline function.
I would be extremely grateful for your help!!
Thanks!!
Cat
[[alternative HTML version deleted]]
2001 Feb 01
3
Rotated mtext
I seem to remember this coming up before, but I can't find it any messages I've
saved or in the archives (searching by subject). I want to rotate mtext so that
it's perpendicular to the right side. I tried srt=90 and lots of other values,
but it seems to be ignored. Is there a way to do this?
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
$(B:MJ8$HCRF`H~$NIc(B -=-=- s-luppescu at uchicago.e...
2003 Nov 21
3
plot map of areas
...map of
polygons, so that
1) each polygon contains exactly one point
2) the polygon defines the area for which this specific point is
closer than any other point.
It's a bit like a map of areas "influenced" by that point, and it's
obviously a matter of intersecting the perpendicular bisectors between
adjacent points.
I believe this type of map has a name, but I can't remember how it's
called.
Is there a function somewhere in a R package that may do this?
Thanks for your help
Pascal
2008 Sep 07
3
how to draw a vertical line from points to x-axis
Hello,
I want to know how to draw a line connecting each point to the x-axis
perpendicularly (i.e. a vertical line).
abline(v=...) seems not to work for my purpose, because it runs over the
data point. Can anyone help? Thanks.
Anny
[[alternative HTML version deleted]]
2008 Jul 31
1
anisotropy in vgm model. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080731/d5bf0e31/attachment.pl>
2007 Jan 29
2
Need to fit a regression line using orthogonal residuals
I'm trying to fit a simple linear regression of just Y ~ X, but both X
and Y are noisy. Thus instead of fitting a standard linear model
minimizing vertical residuals, I would like to minimize
orthogonal/perpendicular residuals. I have tried searching the
R-packages, but have not found anything that seems suitable. I'm not
sure what these types of residuals are typically called (they seem to
have many different names), so that may be my trouble. I do not want to
use Principal Components Analysis (as w...
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
Dear all,
Our quite basic function mtext() does wrong adjustments in some parameter
configurations. This gets obvious when using multi line texts: There is no
way to properly adjust text perpendicular to axis 2, for example.
Best
Jens Oehlschl?gel
m <- matrix(1:9, 3)
colnames(m) <- c("several\nlines", "several\nlines", "several\nlines")
par(mfrow=c(2,2))
barplot(m, horiz=TRUE, axes=FALSE, axisnames=FALSE, main="las=0 adj=0.5 is
fine")
mtext(col...
2004 Oct 18
2
答复: 答复: R plot problems
Yes! You are right ! It is perpendicular to the axis.
Thank you very much!
Could I choose the angle ,such as 45 degree?
Best Regards!
Ivy Li
YMS in Production & Testing
Semiconductor Manufactory International(ShangHai) Corporation
#18 ZhangJiang Road, PuDong New Area, Shanghai, China
Tel: 021-5080-2000 *11754
Email: Ivy_Li at smi...
2004 Oct 27
4
ploting axes and rotating strings
Hello!
I have two question that rose from trying to tacle the same problem in two
differnet ways.
What I want to do is to plot axes (only values or labels, no tick marks) in
such a way that 'cex' can be very small, text can be perpendicular to the
axis (as in axis(las=2) ) and the text is stil at the right position.
Let me demonstrate with a small example:
plot(0:100/100,0:100/100,axes=FALSE)
axis(side=3,at=0:100/100,labels=0:100,las=2,cex.axis=0.1)
The text on the axis should be at the same points as tick marks, but it is
shifted...