Displaying 20 results from an estimated 1698 matches for "lty".
Did you mean:
ltd
2017 Dec 31
1
Draw Overlapping Circles with shaded tracks
...sizes.
I tried to do it, but it looks ugly.
Here what I tried:
library(plotrix)
plot(0:10, 0:10, type="n",axes=FALSE,xlab="",ylab="") #### 0:5,
draw.circle(4,5,radius=3,border="#ff0000aa", lwd=75)
draw.circle(4,5,radius=2.50,border="red",lty=3,lwd=3)
draw.circle(4,5,radius=2.55,border="red",lty=3,lwd=3)
draw.circle(4,5,radius=2.60,border="red",lty=3,lwd=3)
draw.circle(4,5,radius=2.65,border="red",lty=3,lwd=3)
draw.circle(4,5,radius=2.70,border="red",lty=3,lwd=3)
draw.circle(4,5,radius=2.75,borde...
2008 May 22
1
plot 7 * 3 matrix on DIN A4 pdf
...l=c(7,3))
par(pch=19)
par(pty="m") #"s" makes a square plot
par(cex=.1)
par(cex.axis=7)
par(omi=c(1,1,1,1))
axistick<-c(0,10,20,30,40,50,60,70,80,90,100)
par(mar=c(3, 5, 0, 0) + 0.1)
plot(x,xlim=c(0,50),ylim=c(0,100),axes = FALSE)
axis(2,ylab='',at=axistick)
box(lty=1)
plot(x,xlim=c(0,50), ylim=c(0,100),axes = FALSE)
axis(2)
box(lty=1)
plot(x, xlim=c(0,50),ylim=c(0,100),axes = FALSE)
axis(2)
box(lty=1)
plot(x,xlim=c(0,50), ylim=c(0,100),axes = FALSE)
axis(2)
box(lty=1)
plot(x,xlim=c(0,50), ylim=c(0,100),axes = FALSE)
axis(2)
box(lty=1)
plot(x,xlim=c(0,50), yli...
2009 Jan 22
5
Combining Custom and Preset Linetypes
Dear R-Users,
I created the xyplot below using 10 groups (9 groups + 'Total' of all
groups) with lty=1:10. I need the 'Total' to be a bold solid line (lty=1)
where as the 9 groups just need to be distinguishable from each other. As
you can probably see, when the group reaches CRA6 the lty starts from 1
again. I have tried to specify ten unique lines using lty=
c("10","92...
2008 May 14
2
mfrow
...frow.pdf")
par(mfrow=c(4,2))
x<-seq(1:10)
y1<-rnorm(10)
y2<-rnorm(10,mean=2,sd=1)
y3<-rnorm(10,mean=3,sd=1)
y4<-rnorm(10,mean=4,sd=1)
y5<-rnorm(10,mean=5,sd=1)
y6<-rnorm(10,mean=6,sd=1)
y7<-rnorm(10,mean=7,sd=1)
y8<-rnorm(10,mean=8,sd=1)
plot(x,y1,type='o', lty=1, main="I want this title is to be scaled down
(resized)")
plot(x,y2,type='o', lty=2, main="I want this title is to be scaled down
(resized)")
plot(x,y3,type='o', lty=3, main="I want this title is to be scaled down
(resized)")
plot(x,y4,type='o'...
1998 Jan 16
0
matplot
matplot doesn't seem to pass through options like lwd, cex, etc.
quite the way I'd like. I've thought of two ways to fix this, I don't
know which is better.
The first is to treat lwd, cex, etc., exactly like the other options
(col, lty ...) -- (these diffs are long, skip down two pages if you want
to see the other way)
*** matplot.orig Tue Jan 13 18:17:54 1998
--- matplot.new2 Tue Jan 13 18:16:49 1998
***************
*** 1,12 ****
###---- As S (just 'better' ...)
! matpoints <- function(x, y, lty=1:5, pch=NULL,...
2017 Dec 31
0
Draw Overlapping Circles with shaded tracks
Another solution:
library("HelpersMG") plot(0:10,type="n",axes=FALSE,xlab="",ylab="",
asp=1) ellipse(center.x = 3, center.y = 5, radius.x = 5, radius.y = 5,
lwd=10, col=NA, border=rgb(red = 1, green = 0, blue=0, alpha = 0.5))
ellipse(center.x = 8, center.y = 5, radius.x = 5, radius.y = 5, lwd=10,
col=NA, border=rgb(red = 0, green = 1, blue=0, alpha =
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 physik.uni-marburg.d...
2001 Feb 01
1
postscript and lty
To the plot experts:
when creating a plot containing different lines, each with a special line
type, it may happen that the result of 'postscript()' is not readable by
ghostview (which may not be an R error, thus not bug report ;-).
This is the case when mixing lty as 0:6 and character or even when
using lty as character only.
Example:
postscript("test.ps")
plot(1:10, type="l", lty=1)
lines(sample(10), lty="9A1A1A")
lines(sample(10), lty="1A6A7A")
lines(sample(10), lty="9B")
lines(sample(10), lty=&qu...
2006 Dec 08
1
missing factor levels in a lattice barchart panel cause unexpected failure
Hi all - I'm trying to generate lattice barchart graphs with missing
values, and came across the following:
This does not run. I would expect it to:
library(lattice)
D = data.frame(X=1, Y=factor(letters[2], letters[1:2]))
barchart(~ X, D, groups=Y)
Error in grid.Call.graphics("L_rect", x$x, x$y, x$width, x$height,
resolveHJust(x$just, :
invalid line type
which is simply
2000 Jun 27
0
par(lty = "1") -- lty storage-etc bug (PR#584)
...t, 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 fact that
Jim> PostScript expects an array (even if it's empty) and an offset for
Jim> "setdash". Normally, a solid line is specified with an empty
Jim> array and zero offset. Ho...
2000 Jan 17
1
lwd patches for "contour"
I found it useful to have contour be able to do line widths ... hope
that the guts haven't changed an enormous amount in the current
development version ... the patches are relatively trivial, mostly going
by analogy with lty and col (although in my ignorance it took me a while
to figure out what UNPROTECT(2) was and why it should be changed to
UNPROTECT(3) ... hope this is useful.
Ben Bolker
*** src/main/names.c.orig Mon Jan 17 11:23:26 2000
--- src/main/names.c Mon Jan 17 11:50:54 2000
***************
*** 644,650...
2011 Nov 14
2
arrow egdes and lty
Dear R developers,
I want to draw an arrow in a figure with lty=2. The
lty argument also affects the edge of the arrow, which is
unfortunate. Feature or bug?
Is there some way to draw an arrow with intact edge, still
with lty=2?
Example code:
plot(1:10)
arrows(4, 5, 6, 7, lty=2)
Best wishes,
Matthias
--
2017 Dec 31
2
Draw Overlapping Circles with shaded tracks
That code nees the plotrix package:
library(plotrix)
pdf("circles.pdf")
plot(0:10,type="n",axes=FALSE,xlab="",ylab="")
draw.circle(4,5,radius=3,border="#ff0000aa",lwd=10)
draw.circle(6,5,radius=3,border="#0000ffaa",lwd=10)
dev.off()
On Friday, December 29, 2017, 6:06:32 PM EST, Jim Lemon <drjimlemon at gmail.com> wrote:
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...
2005 Oct 21
3
make three plot to one plot
...have tried with matplot function but I did not succeed.
Thanks for your help.
Sincerelly,
Jan Sabee
test.five.x <- c(0.02,0.05,0.07,0.09,0.10,0.12,0.13,0.14,0.16,0.17,0.20,0.21,0.34,0.40)
test.five.y <- c(18,12,17,12,3,15,1,5,1,1,3,10,15,10)
plot(test.five.x, test.five.y, type="l",lty=1, lwd=3, col='red')
legend(par('usr')[2], par('usr')[4], xjust=1,
c('five'),
lwd=3,
lty=1,
col=c('red'))
test.six.x <- c(0.03,0.05,0.07,0.08,0.09,0.10,0.12,0.13,0.14,0.15,0.17,0.18,0.21,0.22,0.24,0.33,0.39,0.43)
test.six.y <- c(...
2011 Jun 07
2
Line Graphs
...have so far:
# Calculate range from 0 to max value of cars and trucks
g_range <- range(0, 1)
# Graph autos using y axis that ranges from 0 to max
# value in cars or trucks vector. Turn off axes and
# annotations (axis labels) so we can specify them ourself
plot(B, type="o", pch = 0, lty=1,col="blue", ylim=g_range, axes=FALSE,
ann=FALSE)
# Make x axis using the values of pi_0 labels
#
axis(1, at=1:10,
lab=c("0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0"))
# M...
2015 May 18
2
A "bug" in plot.dendrogram - can't plot lty with character color
...his e-mail includes an example, and what I think a solution might be.
Reproducible example:
=================
install.packages('dendextend')
library('dendextend')
dend <- 1:2 %>% dist %>% hclust %>% as.dendrogram
plot(dend) # works fine
dend %>% set("branches_lty", 1:2) %>% plot # works fine
dend %>% set("branches_col", 1:2) %>% plot # works fine
dend %>% set("branches_col", as.character(1:2)) %>% plot # works fine
# Fails:
dend %>% set("branches_lty", 1:2) %>% set("branches_col",
as.characte...
2003 Jul 28
1
Plotting (mixed) line types and legends
Hi all
I have a question about plotting line types and
legends. Here's a short piece of code to
demonstrate:
x <- y <- seq(1,10)
plot(x,y, type ="l", lty="33")
lines(x,y+1, lty=1)
legend( 8,2,legend=c("lty=1","lty=\"33\""), lty=c(1,"33") )
On my system (see below), the line types in the legend
are not the same as in the plot--in particular, lty=1.
(In the plot, the lty=1 is solid as expected; in...
2008 Jul 23
6
Convert list of lists <--> data frame
For a function that takes an argument as a list of lists of parameters,
I'd like to be able to convert that
to a data.frame and vice versa, but can't quite figure out how.
pats <- list(structure(list(shape = 0, shape.col = "black", shape.lty = 1,
cell.fill = "white", back.fill = "white", label = 1, label.size = 1,
ref.col = "gray80", ref.grid = "yes", scale.max = 100), .Names =
c("shape",
"shape.col", "shape.lty", "cell.fill", "back.fill"...
2001 Jul 24
3
strange slowness of plot
I just ran into this strange behavior.
y <- rnorm(1000)
x <- seq(0, length=length(y))
plot(x, y, type='l', lty=1) - instantaneous
plot(x, y, type='l', lty=2) - 18s plotting lines + 15s plotting axes
= 33s
plot(x, y, type='l', lty=3) - 76s ,, + 75s
,, = 151s
plot(x, y, type='l', lty=4) - 40s ,, + 38s
,,...