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 <-
2024 Nov 28
2
Remove all box around a plot except bottom line (base graphics)
To make the plot clearer I have removed the axes but I wish to remove
all the boz except the bottom horizontal line. Using the bty parameter
does not seem to enable me to just leave the horizontal line at the
foot. I can get the "l" version to remove everything except the left
hand side and the base. I could also remove the entire box but that
looks odd. Am I reading the
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",
2024 Nov 28
2
Remove all box around a plot except bottom line (base graphics)
On 2024-11-28 8:36 a.m., Michael Dewey wrote:
> To make the plot clearer I have removed the axes but I wish to remove
> all the boz except the bottom horizontal line. Using the bty parameter
> does not seem to enable me to just leave the horizontal line at the
> foot. I can get the "l" version to remove everything except the left
> hand side and the base. I could also
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:
2024 Nov 28
1
Remove all box around a plot except bottom line (base graphics)
Thank you Duncan, I will try that next.
Michael
On 28/11/2024 13:52, Duncan Murdoch wrote:
> On 2024-11-28 8:36 a.m., Michael Dewey wrote:
>> To make the plot clearer I have removed the axes but I wish to remove
>> all the boz except the bottom horizontal line. Using the bty parameter
>> does not seem to enable me to just leave the horizontal line at the
>> foot. I can
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,
2024 Nov 28
1
Remove all box around a plot except bottom line (base graphics)
That's pretty similar to call axis function, i.e.
?plot(rnorm(100), yaxt="n", bty="n")
?usr <- par("usr")
?## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE)
?axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of
the plot box)
Best
Fer
On 11/28/24 14:52, Duncan Murdoch wrote:
> On 2024-11-28 8:36 a.m., Michael Dewey wrote:
>> To
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