Displaying 20 results from an estimated 10000 matches similar to: "Reformat x axis"
2016 Apr 28
0
polygon angle option perpendicular to axis
Tena koe Simon
plot(1:10, 1:10, type='n')
polygon(c(2,3,6,8), c(2,5,5,3), density=20, angle=90)
polygon(c(2,3,6,8), 5+c(2,5,5,3), density=20, angle=0)
I don't understand your problem. Perhaps if you "provide[d] commented, minimal, self-contained, reproducible code" it would help.
HTH ....
Peter Alspach
-----Original Message-----
From: R-help [mailto:r-help-bounces at
2016 Apr 27
4
polygon angle option perpendicular to axis
I am trying to use the angle option in polygon to create polygons filled with horizontal and vertical lines. The polygons I am crating are irregular and it the angle function appears to set the angle of the shading perpendicular to the polygon sides rather than perpendicular to the axes. Is there any way to set the angle relative to the axes rather than relative to the polygon sides?
2016 Apr 28
1
polygon angle option perpendicular to axis
Thanks for the question. Here is a sample of the code for my plot:
Top = c(34, 39, 42, 45, 46, 41, 41, 40, 43, 38, 33, 33)
Bottom = c(24, 29, 32, 36, 32, 34, 32,41, 40, 39, 29, 24)
plot(1,1, col = "white", xlim = c(1.3,11.7), ylim = c(0,80), axis = FALSE, xaxt = "n")
axis(1, at = c(1:12))
polygon(c(c(1:12),c(12:1)), c(top, bottom), col =
2009 Dec 01
1
Aligning Diagonally Oriented Labels Under Bar Chart
I searched the forms (i.e., R Search)?and come up with the following suggested link:
?http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f
I tried to implement what I believe was being implied by that URL and came up with the below:
barplot(WorldPhones[1,],
??????? ylim=c(0, 50000),
??????? axes=FALSE, ann=FALSE,
???????
2012 May 15
4
Reading Excel Formulas as values
When I read excel files using the read.xlsx() command any cells that have
formulas in them come up as NA.
Is there a way to read just the numeric value of the cell without using the
"paste value" command in Excel? I need to read in hundreds of Excel
spreadsheets and compile them into one large super spreadsheet
automatically. Hence the reason I cannot reformat each sheet manually.
2010 Jul 29
4
reading dates in Excel into R
I am reading dates in Excel2007 into R.
Here are the functions I used:
library(RODBC)
channel<-odbcConnectExcel2007("myfile.xlsx")
tmp<-sqlFetch(channel,"1",as.is=T)
The dates in myfile.xlsx are all in this format: mm/dd/yyyy. But when I read it to R, some columns look like "yyyy-mm-dd 00:00:00", some columns look like "yyyy-mm-dd", and some
2010 Jan 12
3
How to get minimum value by group
I'd like to get a long data set of minimum values from groups in another data
set.
The following almost does what I want. (Note, I'm using the word factor
differently from it's meaning in R; bad choice of words)
myframe = data.frame(factor1 = rep(1:2,each=8), factor2 =
rep(c("a","b"),each=4, times=2), factor3 = rep(c("x","y"),each=2, times=4),
2008 Dec 11
5
Row order in plot
I'm new to R so forgive me if this seems like a simple question:
So I have table where the row titles are string variables. When I plot the
data with rows along the x-axis, the data is ordered alphabetically as
opposed to the order of the table.
How can I preserve the row order of the table in the plot?
Thanks in advance.
--
View this message in context:
2009 May 21
1
axis in the barplot
I use barplot to plot graph, and there is axis of y, but no x, just label,
so where to add x-axis in barplot.
--
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
[[alternative HTML version deleted]]
2009 Sep 15
1
X-axis range
Hi all,
I would like to change the x-axis of my graphs from year 1998 to 2008 with
an interval of 5 (i.e. 1998, 2003, 2008). Any help would be greatly
appreciated.
http://www.nabble.com/file/p25447219/model_hydrographs.txt
model_hydrographs.txt http://www.nabble.com/file/p25447219/bore_sample.txt
bore_sample.txt
http://www.nabble.com/file/p25447219/46871a%2Bcalibration%2Bscript.R
2009 Nov 23
1
Different fonts on the same axis
Hi,
I need to have both italics and standard font on the y axis.
This is my script:
plot(x,y,pch=16,xlab="metric",ylab="species CPUE")
I want species in italics and CPUE in standard text.
Any tips would be appreciated.
Thanks.
--
View this message in context: http://old.nabble.com/Different-fonts-on-the-same-axis-tp26482460p26482460.html
Sent from the R help mailing list
2010 Jan 13
1
rotate y axis label and resize its font
Dear ,
As a newbit to R learning boxplot,
please kindly share how to rotate y axis lable by 90 degrees or 180
degrees clockwise.
Also, please advise how to resize the label font and change its color.
Thank you
Elaine
[[alternative HTML version deleted]]
2010 Feb 17
1
boxplot - vertical axis
In the function boxplot: Is it possible to have the numbers on the vertical
axix written horizontally (so that tilting of the head is unneccessary)?
[[alternative HTML version deleted]]
2009 Apr 02
2
Scatter plot
Hi. How do I plot the straight line and r? in a scatter plot using a
simple file x~y?
Sueli Rodrigues
Eng. Agr?noma - UNESP
Mestranda - USP/ESALQ
PPG-Solos e Nutri??o de Plantas
Fones (19)93442981
(19)33719762
2011 Oct 31
3
Plot two matrices and keeping the record of row names
Dear all,
I have two data frames- x1 and y1 with same row names and column names(actually the names of the patients).
x1
a b c d e
a 1.0000000 0.4730679 0.6226994 0.6036036 0.6433333
b 0.4730679 1.0000000 0.6227273 0.6303855 0.5730858
c 0.6226994 0.6227273 1.0000000 0.7290503 0.6900585
d 0.6036036 0.6303855 0.7290503 1.0000000
2010 Feb 08
3
What is the equivalent function in R to xyplot in S?
Page 140 of MASS uses the function xyplot. But I don't find it in R.
Is there a package that I should load to use xyplot. Or there is a
function with a different name in R that does the same thing as xyplot
in S.
xyplot(Gas ~ Temp | Insul, whiteside, panel =
function(x, y, ...) {
panel.xyplot(x, y, ...)
panel.lmline(x, y, ...)
}, xlab = "Average external temperature (deg. C)",
ylab
2009 May 14
3
memory usage grows too fast
Hi All,
I have a 1000x1000000 matrix.
The calculation I would like to do is actually very simple: for each row, calculate the frequency of a given pattern. For example, a toy dataset is as follows.
Col1 Col2 Col3 Col4
01 02 02 00 => Freq of ?02? is 0.5
02 02 02 01 => Freq of ?02? is 0.75
00 02 01 01 ?
My code is quite simple as the following to find the pattern ?02?.
2013 Sep 22
2
Arcsine transformation
I am tryin to perform an arcsine transformation on my data containig
percentages as the dep. variable. Does anyone have a code that I could use
to do that? I am relatively new to R. Thanks for your help!
--
View this message in context: http://r.789695.n4.nabble.com/Arcsine-transformation-tp4676706.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 27
3
Alphabetical sequence of data along the x-axis in a box plot
Hello All,
I noticed when I generated some boxplots, the data is presented in
alphabetical order along the x-axis (the data in this case was the four
quandrants of a sample area (NE,NW, SE, SW) that was my first column of
data). Is there a way to have R plot the data in a different order? I
imagine you could use a dummy variable, but didn't know if there might
be a simple argument that
2009 Dec 01
1
draw a box at 10% lower and upper in scatter plot
Hi,
I would like to draw a box at each corner of lower 10% and upper 10% in the scatter plot on(0,1)*(0,1) to indicate the lower and upper tail. I hope somebody can help me.
Here is my code:
## scatter plot
plot(hume_uni[,2],beec_uni[,2], pch=19, xlab="Hume_uni", ylab="Beec_uni", col= "blue")
title(main="Scatter plot of uniformised data of Hume and