Displaying 20 results from an estimated 40000 matches similar to: "lines/lty"
1999 Mar 10
1
lty=2
On Wed, Mar 10, 1999 at 03:14:08PM +0000, Simon Bond wrote:
> Dear all,
>
> I'm using R 63.2 on windows NT, when I use
>
> > lines(x,y, lty=2)
>
> it produces a dashed line between the first pair of points and then reverts
> back to a solid line. It produces different colours perfectly ok, but it's
> not really a solution when the plot needs to be printed
2008 Nov 20
1
Vector lty argrument for lines or plot
I am confused by the behavior of the lines function when the lty argument is a vector. ?lines indicates that lty is a valid parameter, but says nothing else about it. ?plot.xy (which I think is what gets called) refers back to ?lines. ?plot.default says to see ?par. In ?par, about lty it says "Some functions such as lines accept a vector of values which are recycled. Other uses will take
2010 Oct 10
2
Line Type Specification: lty="<on><off>" but lty="<off><on>"?
Hi,
Section 'Line Type Specification' in help(par) explains how you can do
custom line types. For example:
plot(NA, xlim=c(0,1), ylim=c(0,1));
abline(h=1/2, col="blue", lwd=2, lty="88");
will draw a dashed line segment where the line is composed of 8 units
of "on" (blue color) and 8 units of "off" (transparent), then
repeated.
Now I'd like
1998 Jun 03
4
lty
I find, viewing the output with ghostview, that lty="2","3", or "4" gives
the same dashed line. So basically you have choice of solid ("1") or
dashed ("2","3","4").
If this is not implemented yet, maybe the docs should reflect it?
Hmm now I tried plotting with both lty="2" and lty="3" for two separate
2010 Jun 08
2
scatterplot function - double check: dashed lines
Hello everyone,
This is just a quick double check. It concerns the 'scatterplot function' in R.
I have 6 curves and I wish to represent each of them by a different kind of line (their colour must be black).
The curves are derived from the cuminc function...the coordinates of which are in 'xx'.
Upon reading the documentation in R, it looks like I can use the 'on/off'
2000 Oct 17
1
filed plot symbols
This example,
x<-1:10
y1<-x
y2<-x+2
plot(x,y1,pch=21,ylim=range(c(y1,y2)),type="o",lty="solid",bg="white")
points(x,y2,pch=22,type="o",lty="dashed",bg="white")
legend(7,3,legend=c("y1","y2"),pch=c(21,22),lty=c("solid","dashed"),bg="white")
works if I use pch = one of 21-25. But
2013 Feb 20
0
Problems with line types in plots saved as PDF files
Ian
No differences with Adobe X with the following
windows(6,6)
#pdf(file = "TestPlot.pdf", 6, 6)
#{
plot(b, l, type = "l", ylim = c(y.min, y.max), lwd = 2, xlab =
expression(beta), ylab = "", col = "green", yaxt = "n", xaxt = "n")
points(b, p, type = "l", lty = "dotted", lwd = 2, col = "red")
points(b,
2005 Mar 14
1
Legend Line Size
Hello all,
When I view or print the below plot on my Linux machine under R 2.0.1 I
see a nice thick solid and dashed line with a legend. However, while the
lines are distinguishable, the legend is not. That is, the short (solid)
line next to "line1" and the short (dashed) line next to "line2" seem to
have the exact same length. What I would like to do is to expand the
legend
2017 Dec 04
0
problem with the behaviour of dashed lines in R plots
Hi,
It's because you are plotting a line between each of the points in
your data frame, and they are very close together:
> cbind(df1$B,predict(regressor,df1))
[,1] [,2]
1 1.410832 -13.96466
2 1.589383 -15.21169
3 1.446662 -14.21491
4 1.488665 -14.50826
5 1.487035 -14.49687
6 1.497347 -14.56890
7 1.458070 -14.29458
8 1.568134 -15.06328
9 1.543364 -14.89029
10 1.513473
2002 Jun 05
6
mixing different modes of lty line type specification in legend() ?
Hi List,
is sth. like the following possible:
legend(x,y,c("A","B","C"), lty=list(1,"42","11")) ?
Or: is there a possibility to define a solid line using the "string" mode for lty?
Thanks
Marcus
--
+-------- ><> -------------------------------------------
| E-Mail: eger.m at gmx.de (NEW)
| marcus.eger at
1997 Jul 29
0
R-alpha: more graphics: lwd, persistent lty settings
[ SunOS 4.1.3, R-0.50-a1; I'm mostly very pleased, I haven't been
pounding on it as hard as some folks have ]
par(lwd) seems to be a bit of a stub right now; I wouldn't necessarily
expect it to do anything in the x11() driver (nor would I know how to fix
it), but it would be nice in the postscript driver (e.g. for thick lines
for things to be made into slides).
I will try to
2017 Dec 04
3
problem with the behaviour of dashed lines in R plots
dear R users,
I am performing a linear regression with lm, and I would like to plot
the regressor in dashed lines. I know that the lty=2 option is the way
out, but it has a very strange behaviour: the line starts dashed but
then the spaces between each dash becomes very tiny and so the line
become somehow continuous for the human eye. Do you know how to fix that
problem, in order to have a
2003 Apr 29
4
thick plot lines
Dear People,
In a qqplot I am doing, I get lines/points that are very thick. I've tried
setting the lwd variable to 0.1, but it doesn't seem to have any effect.
Also, I have set the value of lty to dashed, but I still get dots. The
command looks like
qqplot(cdf.inv(seq(0,1,length=size),theta,pos,len),empmargdistvec(len,theta,pos,size),
xlim=c(-theta,theta), ylim=c(-theta,theta),
2011 Sep 10
0
Mutiple vertical reference lines with a dotplot
Dear R helpers
I would like to plot vertical reference lines for yearly averages the
variable being plotted. In this case there are three years 2002, 2009 and
2010 for a variable Resc_Gt.
I've attempted to get the 2002 mean plotting (2.27) using the 'abline'
command but no joy.
Ideally I would like to be able to compute and plot the means of the three
years automatically using a
2008 Aug 07
2
panel.arrows problem in custom panel function
Dear List,
I am writing a custom panel function and xyplot method to plot the
results of a procrustes analysis from the vegan package.
I am having trouble getting the call to panel.arrows to work as I wish
when conditioning. The attached file contains the function definitions
for the xyplot method and the custom panel and prepanel functions I am
using. This example, using data and functions from
2005 Jul 19
2
Regression lines for differently-sized groups on the same plot
Hi there,
I've looked through the very helpful advice about adding fitted lines to
plots in the r-help archive, and can't find a post where someone has offered
a solution for my specific problem. I need to plot logistic regression fits
from three differently-sized data subsets on a plot of the entire dataset.
A description and code are below:
I have an unbalanced dataset
2009 Nov 27
1
R 2.10 Line Type Issue...
Morning folks (at least here on the western side of the U.S.)...
This morning I constructed a contour plot of some bivariate
distributions I'm working with. When I attempted to add a second
contour to the plot using a dashed line (lty=2), R immediately went
off to la-la land, requiring a force-quit. I finally tied the problem
down to this statement:
2008 Jul 30
1
Unexpected line type in lattice plot key on pdf device
L.S.,
With the code below,
on the Windows screen the line types in the key show
as solid and dashed as in the graph,
and in the pdf file they show
as solid in the key and solid and dashed in the graph.
I would not expect that,
but may be I get something wrong.
Gerrit.
-------
library(lattice)
# pdf("pietje.pdf")
x<-0:10
xyplot((x^0.5)+(x^0.75)~x,type="o",lty=c(1,2),
2009 Apr 30
0
plot scaling bug when using par(mfg)
Dear list,
I've noticed a width/height scaling bug in multi-panel plots when you
change the active plot using par mfg
The underlying par setting that maps the full plot width (or height)
to the numerical axis labels does not get updated when you change
plots with par(mfg=...). Thus plotting a point at c(10,10) in the
first plot will only be in the correct place IF the most recently
2000 Jun 27
0
par(lty = "1") -- lty storage-etc bug (PR#584)
Bug report, rather than R-help;
This is at least since 1.0.0; didn't try even older versions ..
Jim> Anon wrote:
Anon> ...However, if I use Fred <- c(1,"33")... Is this a
Anon> bug, or am I missing something?
this made use it essentially something like
par(lty = "1")
Jim> This is an interesting problem. It boils down to the