Displaying 20 results from an estimated 98 matches for "perpendicularly".
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 line from C to line
AB and get the x,y value for the point D
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?
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
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 =
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 achieving the desired
result,
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
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
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
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 you. I am running R-2.10.1 on Linux.
Is there a way
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[foo$type[o1]],
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
Hi!
I have a question that is probably very basic, but I cannot figure out how
to do it. I simply need to compare the significance of a regression slope
against a slope of 1, instead of the default 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:
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
2003 Nov 21
3
plot map of areas
Hi all,
Given a number of points (x,y) in a plane, I'd like to plot a 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
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
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))
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 smics.com
-----orig---
Hi Ivy,
How about
x <-
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: