Displaying 20 results from an estimated 20000 matches similar to: "border/box/frame around plot"
2010 Jan 20
2
Plot frame border to start at zero?
Hello,
I am creating plots of hourly precipitation and accumulated
precipitation (on different axis, see attached image). I was wondering
how can I have the plot frame (black border) start at zero, it looks
like it is plotted less than zero?
The code I use to create the png files is below:
CairoPNG(PNG_file,width=1000, height=600, pointsize=14, bg="white")
opar <-
2012 Apr 24
1
Remove top/right border from lattice plots
Hi,
I've done my best to search for a solution to this, but had no luck.
How can I create a lattice plot (I'm using xyplot() ) that does not have
a border on the top and right side, but keeps the bottom/left axes?
So far all I've found is this, which inserted into the xyplot call
removes all 4 borders:
/ par.settings = list(axis.line = list(col = 0))/
xyplot( Sepal.Length ~
2012 Jan 27
2
Placing a Shaded Box on a Plot
Hello,
I would like to place shaded boxes on different areas of a
phylogenetic tree plot. Since I can not determine how to find axes on
the phylogenetic tree plot I am not able to place the box over certain
areas. Below is example code for the shaded box that I have tried to
use, and the first four values specify the position.
rect(110, 400, 135, 450, col="grey",
2009 Dec 28
3
graph shading is overlaying axes
How can I resolve this problem?...
As a general example,
plot (1:4)
polygon(c(0,0,5,5),c(0,5,5,0), border="lavenderblush1", col =
"lavenderblush1")
###see how this overlays the axes lines
#I have tried...
for (k in 1:4) axis(k, lwd.ticks=0, label=F)
#...but this misses the corners
Any suggestions?
--
View this message in context:
2009 Aug 17
1
image() generates many border lines in pdf, not on screen (quartz) - R 2.9.1 GUI 1.28 Tiger build 32-bit (5444) - OS X 10.5.8
Dear all,
I have invested substantial amount of work in a complicated, yet on
screen perfect looking graph that uses image(). Unfortunately saving it
as pdf (or quartz.save at high resolution) all generate very disturbing
border lines around each small rectangle that image() has drawn. While
using Preview it helps to turn off antialiasing to make those faint
lines disappear on screen
2010 Jan 12
1
barplot: border color when stacked
Dear R-users,
I am using R version 2.10.1 under windows.
In a barplot, I want to mark one of the bars with a special border color.
For example:
barplot(c(3, 7, 11), border = c(NA, "red", NA))
But how to do this when the bars are stacked?
for example:
barplot(matrix(1:6, ncol=3)) # border of second bar (i.e. the one with total height = 7) should be red again, I try:
barplot(matrix(1:6,
2011 Feb 08
1
Plotting Chinese characters
Hi,
I have read some of the documentation relative to character encodings and
non-standard fonts (including previous answered questions and the 2006-2 R
issue), but I am still struggling with very basic plotting of Chinese text.
I am using R for Mac OS X GUI 1.35-dev Leopard build 32-bit.
I have a network, g, of Chinese characters (each node is a Chinese
character) and I can handle it and
2007 Jun 19
4
plot only x- and y-axis with origin, no box()
hi all,
I'm trying for quite some time to have an x- and y-axis, but no entire box.
>plot(..,axes=F)
>axis(1)
>axis(2)
Gives this, but their axes do not go to the origin.
Quite a number of people find this gap between the two axes disturbing.
Has anyone an idea how to let these axes go to the origin?
thank you in advance
[[alternative HTML version deleted]]
2010 Mar 15
1
Eliminate border in wireframe plot
How can I eliminate the border drawn by default around a wireframe plot? I've tried using border=NA and box=FALSE to no avail.
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov
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 =
2011 Sep 12
6
barplot in hexagram layout
dev.new(width=6, height=1.5,mar=c(0,0,0,0))
par(mfrow=c(1,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0))
barplot(c(1,1,1,1,1,1),col=c("blue","purple","red","green","orange","yellow"),
axes = FALSE)
I have a barplot that returns six colors in a line. I would like to get the
same six color blocks in a hexagram layout (if it were a clock,
2017 Dec 31
1
Draw Overlapping Circles with shaded tracks
Dear All:
Thank you very much for all of you.
I just have one more thing. Is there a way to fill the borders with small
dots, may be different 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)
2003 Jan 17
2
barplot plotting problem
Hi,
Is there any equivalent of type="n" when constructing barplots which will
still construct the axes (plot=F, as it says doesn' plot anything at all).
Alternatively I tried setting col="white" and border="white" but the border
command does not seem to be operational. True??
Any other ideas? What I'm actually trying to do is construct vertical
abline()'s
2009 Dec 18
1
lattice: shape of box around wireframe
Hi,
I was wondering if there is a way to adjust the shape of the box around the
wireframe. By default this box is always a cube. For instance, is it
possible to cut this cube into two halfs each half being a 3d rectangle? Or
just plot a 3d rectangle with a wireframe inside and adjusted axes?
So far I've read "Lattice: Multivariate Data Visualization with R" and
searched through the
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:
2004 Aug 31
2
I've forgotten, why is box("") the default?
I've searched on CRAN for axes, axis, and other terms
I've already forgotten, without (re)discovering the
reason for S using "non-joining" axes by default, instead
of box("l").
MASS points me towards Cleveland (1993) but I don't
have ready access to this any more. Could someone
give me a one-liner to justify this choice to a sceptic?
It's something to do
2009 Aug 27
1
Wishlist: specify the border color of boxes in legend() (PR#13913)
I could not find a way to specify the border color of the boxes drawn in
a legend, so that the legend can match exactly the colors of the actual
plot (e.g. in the case of two superimposed histograms which have
different shading and different borders).
Indeed, the legend function seems to hard code the color "black" for the
borders in this call:
rect2(left = xt, top = yt +
2010 Dec 06
2
ggplot2: Controlling line width of panel borders
Dear R-users,
i encountered some problems when trying to adjust the line width of the
axes and stripes in a plot created with ggplot2.
I use the "barley" dataset of the lattice package to illustrate my problem:
library(ggplot2)
library(lattice)
barley[["SD"]] <- 5
limits <- aes(ymax=barley$yield + barley$SD,ymin=barley$yield - barley$SD)
p1 <-
2012 Feb 20
3
Run function several times changing only one argument - without a loop
Dear people,
I created a plot which looks like this:
Ee1<-matrix(c(88,86,74,62,41),ncol=5)
colnames(Ee1)<-c("Lehrer","Lehrerinnen","Klassenkollegen","Klassenkolleginnen","Geschwister")
par(las=1)
par(mar=c(5,13,4,2))
barplot(Ee1,horiz=T,col="grey85",border="NA",xlim=c(0,100),axes=F)
axis(2,pos=10, tick=T, tcl=F,
2004 Nov 08
1
whishlist: legend - changing color of the boxes-border
Hi,
Drawing a legend I would like to be able to specify the color of boxes which are drawn if fill or density is specified.
eg.
legend(0,40000,c("raw","LR/PR-TPS"),fill=c(1,2),col=c(1,2),density=c(20,20),angle=c(-20,45),bty="n")
Currently the color of the boxes -- border is always black and can *not* be changed. To get this option only a *minimal* change is