Displaying 20 results from an estimated 6000 matches similar to: "Extra lines when bty="n" (PR#1021)"
2004 Aug 26
1
"o" bty with different axes
Is it possible to create plot bty=o with different scale of left- and
right x-axis? In my documents, by typesetting, bty=u looks disruptively.
At 2nd: how to frame the whole box (including title and axes labels) and
resize to landscape-oriented rectangle?
Tomas Bayer
2008 Apr 17
1
bty
Dear list:
Is there any way of getting the equivalent to what you get with bty="l"
for the right and bottom axes? and the equivalent to
bty="7" for the upper and left axes?
Thanks!
Agus
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at
2010 Jan 29
1
How to draw a border for multiple graphs in one page
Hi,
I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same).
For example, my data is like this
Concentration value
A1 69
A2 8
G1 51
G2 1
2010 Nov 11
3
overlap histogram and density
Hi,
Does anybody encounter the same problem when we overlap histogram and density
that the density line seem to shift to the right a little bit?
If you do have the same problem, what should we do to correct that?
Thank you.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0))
hist(datobs,prob=TRUE, main ="Volume of a catchment from four
2010 Feb 19
1
"Legend" question
Hi,
I want to get a histogram with the legend for my data. I drew a normal density curve and kernel density curve in the histogram, and I also label mean and median in the X axis. From the code, I got two legend: One shows "Normal Density" and "Kernel Density" and their corresponding lines, the other shows "Mean = value" and "Median = value" and their
2010 Nov 18
3
New Sampling question
I have another question about drawing samples from a data frame. This might
sound really tricky. Let me use a data frame I have posted earlier as an
example:
SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4
1 6 5 6 2 6 2 2 4
2 6 4 7 2 6 6 2 3
3 5 5 5 5
2013 May 12
1
How to center a horizontal legend with specified 'text.width'
Hello dear list,
I just cannot figure out how to do this and didn't find a solution for my specific problem.
I want to place a centered horizontal legend between 4 plots. That's no problem.
The problem is: As soon as I specify the "text.width" parameter to separate the two legend entries, the legend is not centered anymore. I thought the 'xjust' parameter would do what
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.
I tried this below and it gives me two plots of ecdf but just both just in
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
2005 Nov 02
1
x/y coordinates of dendrogram branches
Dear R-users,
I need some help concerning the plotting of dendrograms for hierarchical
agglomerative clustering.
The agglomeration niveau of each step should be displayed at the
branches of the dendrogram.
For this I need the x/y coordinates of the branch-agglomerations of the
dendrogram.
The y-values are known (the heights of the agglomeration), but how can I
get the x-values?
> mydata
2006 Jul 11
1
Misunderstanding with lines (or elsewhere)
Misunderstanding with lines(...) :
http://7d4.com/r/
I would like the y coordinate of the horizontal line to be 1/4,
and also the line to begin at x=0 and end at y=1.
I'm obviously missing something
... so if anybody could help.
Many thanks.
test = function()
{
bmp('test.bmp', width=100, height=100)
m = matrix(0, 2, 2)
par(new=T, fig = c(0,1,0,1), mai=c(0,0,0,0), mar=c(0,0,0,0),
2011 Dec 07
2
Hist and extra space
Hi everyone.
I have an histogram like this one:
http://imageshack.us/photo/my-images/442/dfsdfsdj.jpg/
I would like to remove the extra space under the histogram so it "touch" the
x axis. Is it possible? Here's my code.
hist(X, freq = F, col = 'gray', axes = FALSE)
abline(v = cyano_euk_min, col = 'red', lty = 3, lw = 2)
abline(v = cyano_euk_max, col =
2004 Mar 25
1
Error in 'legend' help?
Dear all,
maybe I have misunderstood something but to me it seems like a minor error
in the help for
?legend
for the argument 'bg'. There it says:
bg: the background color for the legend box. (Note that this is
only used if 'bty = "n"'.)
I think, however, that it should be changed to:
bg: the background color for the legend box. (Note that this
2009 Oct 14
1
default borders in boxplot and barplot
This is my first post so hopefully I haven't mucked up the rules.
I'm trying to change the default borders in either boxplot or barplot so
that, at the request of a journal, all of my figures have the same type of
border.
I've successfully used par(bty="o") using plot(1:10, bty="o"), but it
seems that barplot and boxplot have their own defaults that override
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
2008 Sep 19
2
plot order in multi-panel figure
Hi,
Does anyone know if there is a way to 'reset the plot number' on a traditional graphics device?
For instance, I want to have two plots on stacked top of each other (mfrow=c(2,1)) but with underlying grid lines spanning both figures vertically. I can put the grid lines on top if I add them last:
par(mfrow=c(2,1))
plot.new()
plot.window(c(0,1),c(0,1))
for( i in 1:2) axis(i)
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
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
2017 Oct 10
1
About multiple panels with limited space in-between
Hi R users,
I have a question about plotting. The following two datasets are an
example. What I have in mind is like the attached figure, but just have two
rows, top row is for DF1, bottom row is for DF2. The top and bottom rows,
have x-axis as var1, var2, var3, etc, while the y-axis represents A. For
each row, only the leftmost panel has y-axis ticks and label. For the two
rows, only the bottom
2008 Aug 11
2
: bquote inside legend()
Hi,
I have a graph and I would like to write some values inside the legend that were saved in a variable. Please revise the code below in which I've wrote 2 different legends, but I am not happy with either of them. What I want is a legend with tile "Legend" and underneath a line with a name and a value like that: value = 2.
#Code begin:
# -------------------
a = 2 # result of a
2007 Jun 26
3
[PATCH] Always use mipmaps in cube plugin
Currently, the cube plugin uses mipmapping only when cube is unfolded.
When the cube is rotated, mipmaps are not used, which leads to ugly look
of textures.
The attached patch fixes this. This leads to another kind of artifacts,
which are fixable with anisotropic filtering.
http://team.pld-linux.org/~wolf/aniso.png
The leftmost image is the current state of cube plugin. The center image
is with