Displaying 20 results from an estimated 50000 matches similar to: "plot feature request"
2011 Jul 08
2
Vertical Labels in plot graph - normally working fine but not on this graph
Hello,
I wonder if someone can elaborate on why in the first graph I am able to set
labels vertical to the x-axis but not in the second.
I tried to select the window but it didnt really help.
Many Thanks
Paolo
ExtAvgCWV = rnorm(200)
ExtAvgDemand = rnorm(200)
ExtGasDays = seq(from = as.Date("2010-8-4", "%Y-%m-%d"), along.with =
ExtAvgCWV, by = "days")
2017 Jun 20
1
Help with the plot function
Dear all,
I found the last example of this link (
https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf)
very similar to the one I need to make for my paper, and I think I got what
I wanted by applying some of the suggestions of this mail list.
Here it is the code I devised (maybe there will be further improvements
from the list):
YEAR <- c(1996 ,
2003 Aug 06
2
Plot ticks and tick labels: thickness, colour?
I am displaying several series in one plot, and would like to make
them distinct without having to employ a legend.
I managed to color tickmarks, but have been unsuccessful with either one of
a) making tickmarks thicker (without increasing the axis at the same time).
From reading ?axis:
lty, lwd: line type, width for the axis line and the tick marks.
in would appear that I cannot
2017 Jun 20
0
Help with the plot function
Hi
You are quite close. With slight modification of your code:
par(mfrow = c(2, 1))
par(cex = 0.6)
par(mar = c(0, 0, 0, 0), oma = c(4, 4, 0.5, 0.5))
par(tcl = -0.25)
par(mgp = c(2, 0.6, 0))
plot(BUD~YEAR, type="o", ann=F, axes=F, pch=19, ylim=c(60,100),data=g1)
axis(4, las=2)
mtext("Bud Break (Julian Day)", side=4, padj=4)
arrows(g1$YEAR,g1$BUD, g1$YEAR,g1$BUD + g1$BUD_SE,
2009 Nov 09
1
Automating Plot Commands using a Loop
I have three matrices with the same row and column names, but different data.
e.g.
Data
Alpha Beta Gamma Delta
A .1 .2 .3 .4
B .2 .3 .4 .5
C .8 .9 .43 .13
D .13 .34 .34 .3
For each column, I would like to create a separate plot on a single window.
I currently am using the cmd-line:
windows()
par(mfrow=c(2,2))
2017 Jun 20
2
Help with the plot function
Hi, Bert:
Yes, I studied the functions you suggested, but I didn't get to adapt it to
my example whose reproducible code I sent in my first email.
Here it is the code of the functions I studies:
## par
par(mfrow = c(2, 3))
par(cex = 0.6)
par(mar = c(3, 3, 0, 0), oma = c(1, 1, 1, 1))
for (i in 1:6) {
plot(1, 1, type = "n")
mtext(letters[i], side = 3, line = -1, adj = 0.1, cex =
2000 Oct 06
9
Turning off axis annotation?
HI there,
Well, I am stuck again. How do I turn off axis annotation?
Oh, and thanks to Peter Dalgaard
for his help with my last question.
I have an observation that others there may find interesting. In the
windows implementation
of R, the tck option of par() does not seem to operate as the reference
manual indicates. Apparently the length of ticks using this option is
supposed to be
2011 May 03
3
Axis trouble
Hello Everyone,
I am having problem in defining specific axis for
plotting a vactor.
vecAVG <- c(0.2, 0.4, 0.6, 0.2, 0.4)
names(vecAVG)<-c("brain","heart","kidney","lung","blood")
par(mar=c(12,4.1,4.1, 2.1))
2017 Jun 20
2
Help with the plot function
Dear friends,
I have the following dataframe:
YEAR <- c(1996 , 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 )
T_MAR <- c(2.8, 6.5, 5.4,2.4, 4, 4.1, 3, 4.4, 4.5)
T_APR <- c(5.7, 7.8, 7.7, 4.6, 4.7, 6.2,5.7, 5.9, 7)
T_MAY <- c(7, 8.8, 10, 6, 5.5, 7.6, 8.5, 7.3, 10.2)
BUD <- c(87, 98, 93, 85, 89, 91, 87, 92, 92)
BUD_SE <- c(3.6, 2, 2.4, 4, 2.4, 2.4, 4, 2.4, 3)
g1 <-
2009 Jul 09
2
X-axis labels not displayed when changing ylim
Dear R users,
I am encountering a x axis labeling problem on quite basic plots...
I use the following code which displays the labels on the x-axis with a
45 degrees angle:
p <- plot(myobject1, type="b", col="red",cex=1, lwd=2, axes=FALSE,
ann=FALSE, ylim=c(0,70))
title(main="title", font.main=4)
axis(side=1, lab=F)
text(axTicks(1), par("usr")[3] - 2,
2005 Jun 12
1
y-axis and resizing window
hi
using plot(..., las=1), i.e. horizontal axis labels, the labels on the
y-axis jams if the heigth of the graphics windov becomes too low
while both x-axis and y-axis kind of removes superflus lables with las=0
(default)
is there a way to make plot behave alike with horizontal lables?
regards s??ren
2008 Feb 12
2
shaded area graph and extra plot
R-help,
I'm using the code below to plot a shaded area graph.
At the same time I want to plot a second series on the y-axis (from
par(new=T) on)
but as the two series have different x-axis range (first 1994:2007 and
second 1996:2007)
the corresponding x's do not match.
How can this be sorted out?
Thanks in advance
#############################################
plot.new()
2007 Jan 25
1
barplot x-axis problem
Hi R-users,
I'm new to R and I'm trying to make a barplot combined with two lines
(refering to secondary y-axis). Bars should represent the number of
transfused patients by age class and sex and lines should represent
the amount of blood units given in age classes. I have now successfully made
a barplot and used par(new=TRUE) to plot another empty graph at the top of
the barplot.
2013 Feb 14
5
plot custom x axis ticks values
Readers,
For this data set:
testvalues<-c(10,20,30,40)
How to amend the plot instruction:
plot(testvalues,ann=FALSE,type='l',yaxt='n',xaxt='n')
so that x axis ticks labels can be added to existing graph with
arbitrary value such as 0,100,200,300)?
Thanks in advance.
--
r2151
2003 Jan 03
1
Take care with codes()! (was type of representation)
Ahh yes, sorry about that.
Here's the corrected snippet:
# Create an Example Data Frame Containing Car x Color data
carnames <- c("bmw","renault","mercedes","seat")
carcolors <- c("red","white","silver","green")
datavals <- round(rnorm(16, mean=10, sd=4),1)
data <- data.frame(Car=rep(carnames,4),
2017 Jun 20
2
Help with the plot function
I'm trying to recreate a graph similar to the last one found on this link:
https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf
The difference is that I want budbreak on the top, and the temperatures at
the bottom.
I tried to set par before each graph and include lines, with no avail.
Thanks, Bert.
Andre
On Mon, Jun 19, 2017 at 7:41 PM, Bert Gunter
2008 Aug 12
1
wishlist: par(ann=FALSE) applied to hist?
par(ann=FALSE) appears to have no effect on
hist.default; it would be nice if it did ...
(boxplot, which plots via bxp, which calls
internal do_title, does -- in a quick search
I can't figure out where the value of ann
takes effect ...)
thanks
Ben Bolker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
2017 Jun 20
0
Help with the plot function
See
?layout
?split.screen
?par (the mfrow and mfcol values)
depending exactly on what you want to do and how you want to do it.
Essentially, these all allow you to make separate plots at different
regions of the device.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in
2008 Aug 06
4
defining the distance between axis label and axis
Hi,
How can I make the distance between an axis-label and the axis bigger?
I haven't found anything in par()...
2003 May 16
2
Axis labels
Hello R-experts!
When I produce a plot R takes avoids overlapping axis labels in order to
maintain readabilty which is great. But now I have written a little
custom plot function in which I set my own labels and label
positions after generating the actual plot:
axis(..., lables=c('A', 'B', 'F', 'G', 'M'), at=mypositions)
As you may have guessed: This is