Displaying 20 results from an estimated 1300 matches similar to: "question on axis box with asp=1"
2001 Jan 30
1
screen can't go back to log="y" plot (PR#831)
[I have abbreviated the subject as jitterbug has been having probems
with long subjects.]
The issue here is that one cannot mix log/non-log axes in the calls to
screen(), as the appropriate par() parameter is read-only, but the
meaning of yaxp depends on it. But beyond that you can't set
x/yaxp for log axes.
You should be able to do this: you can in the S original.
A simpler version:
plot
2011 Apr 23
3
Problem having tick marks aligned when plotting three graphs on top of one another.
R 2.10
Windows 7
I am trying to plot three graphs on top of each other. I need to have the axises perfectly aligned. For some reason the ticks on the y axes are slightly off so they do not perfectly align. Can someone tell me how I can get the to overlay each other perfectly? I thought the yaxp parameter would solve my problem, but it does not. My data and code follows:
>
2005 Jun 28
2
axTicks on a reverse ylog plot (PR#7973)
There is still issues with the reversed y-log scale plot:
# Test case A: works as expected
plot(10:100,log="y",ylim=c(100,11))
grid()
par("yaxp")
# Test case B: grid does not have horizontal lines; par("yaxp") is
different
plot(1:100,log="y",ylim=c(100,10))
grid()
par("yaxp")
In the second test case, axTicks for the horizontal lines (in
2011 Feb 11
1
How to compute "yaxp" and "usr" without plotting ?
Dear all,
I'd like to know how I could compute the parameters "yaxp" and (the y
components of) "usr" without having to plot the data first. Note that
"ylim" is /a priori/ fixed.
The aim is to automatically adjust the parameter "mgp" without having to
make the plot twice. Then, with "yaxp" and "usr" known, it should be
easy to
2009 Jul 25
1
yaxp problem for more irregular time series in one plot
Good day,
I'm trying to get more time series in one plot. As there are bigger
differences in values of variables I need logaritmic y axis.
The code I use is the following:
nvz_3_data <- read.csv('/home/tomas/R_outputs/nvz_3.csv')
date <- (nvz_3_data$date)
NO3 <- (nvz_3_data$NO3)
NH4 <- (nvz_3_data$NH4)
date_p <- as.POSIXct(date, "CET")
par(mfrow=c(2,1), ylog
2010 Oct 11
2
(no subject)
Dear List,
I am trying to plot date vs. time, but am having problems getting my y-axis
labels how I want them.? When left on its own R plots time at 6 hour intervals
from 03:00 to 23:00.? I am wanting 6 hour intervals from 2:00 to 22:00.? I
realize yaxp doesn't work in plot(), so I am trying to get it to work in par().?
However, now I get the ticks where I want them but the time is output
2003 Jul 21
1
doubt about graphics
Hi,
I have an data like this
x <- c(1:11)
y <- seq(245,445,20)
I make a plot
plot(x,y)
The first y value in y axis is 250 and the last y valeu is 450, the spacing
between values are 50, so the y values showed are: 250, 300, 350, 400, 450
I need that values in y axis are: 240, 280, 320, 360, 400, 440, 480.
I try
plot(x,y,yaxp=c(240,480,6))
dont work
I try
2000 Jun 02
3
graphical parameters in plot
I'm using plot to make a simple plot but I want to control where
the tick marks go on bot axes. The graphical parameters xaxp and
yaxp seem to be ignored by the plot function so I tried setting them
using
op <- par(no.readonly=T)
par(xaxp=c(-2.4,-2.2,5), yaxp=c(-2500,10000,6))
plot(...)
par(op)
but they are still ignored.
Next I tried to use the axis function as follows
op <-
2010 Jun 13
1
Break in the y-axis
Hello all,
I have been having trouble getting a break in my y-axis. All of my data
points are up around 100-200, but the graph has to start at zero, so i would
like to remove all the white space using a break symbol. I have been able
to get the break and labels to be correct, however, I can't seem to get the
data to match the axis anymore. I must be using the axis.break() in plotrix
2009 Jan 11
1
boxplots: yaxp does not work
Hi,
I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).
Can someone help me out?
2003 Jun 19
3
Background color(s) for groupedData plot
I've been using par() to check the graphics parameters
associated with both plot(<fitted linear model>) and
plot(<grouped data object>). AFAIK the only differences
are in the $cxy, $usr, $xaxp, and $yaxp parameters but
the background color for the grouped data plot is grey
while the linear model plot has a white background.
When I've tried par(bg = "white") prior to
2010 Jun 05
1
Error Bar Issues
Hello all,
I am an undergraduate student who is having syntax issues trying to get
error bars on my graph.
This is the data, which I assigned the name "Saline" to.
Time Average SEM
1 -20 0.000000 0.0000000
2
3 30 0.000000 0.0000000
4 45 3.227902 0.7462524
5 60 5.066664 1.1623944
6 80 6.107491 1.5027762
7 110
2013 Jan 08
4
error in a abline loop
Hello
I have data of body length and body weight of people of different skin colors.
I tried to write a code to plot body length and body weight according
to the skin colors.
(Thanks for Petr's advice so far.)
A loop is used but an error shows up in the following code.
It says:
unexpected '}' in
"
2012 Sep 24
3
boxplot of different colors
Hello,
I am making a boxplot of 13 boxes.
I tried to color the box using 13 colors but failed.
Only red and brown were displayed.
Green, blue, and grey disappeared.
Please kindly advise modification after checking the code below.
Thank you in advance.
Elaine
R code
# data input
dataN
<-read.csv("H:/a_mig_distance_B_NB/R_data/Mig_bird_586_20120925.csv",header=T,
row.names=1)
2009 Jul 23
3
How to pass a character argument which contains expressions to arg.names in barplot?
Hi all
Can anybody help me with this? I am trying to include in an automatic way
the argument in arg.names in a barplot. I generate the labels I want to
appear below the bars with a for loop, and they contain subscripts, so I
need to use expression
anch<-0.05
esp<-4
for (i in 1:dim(Ntot)[1])
{
naux<-Ntot[i,]
naux2<-naux[naux>0]
nind<-which(naux>0)
2010 Dec 18
1
Can I make my colnames bold?
Hello forum! As the subject indicates, I am trying to make a barplot and
would like my column names to be in bold. Is this possible in R without
having to make my column names in mtext? Any help would be much
appreciated. The code I am using is as follows.
par(mar=c(3,8,2,2))
par(adj=.5)
par(font=2)
par(oma=c(3,3,3,3))
par(xpd=TRUE)
Blot<-matrix(c(25.2995, 0.7625, 25.6135, 36.5770,
2002 May 03
0
copy or save to metafile from graphics device shrinks plots (PR#1507)
Full_Name: Drew Tyre
Version: 1.4.0
OS: Win 2000
Submission from: (NULL) (140.253.74.225)
When creating a rather complex plot, the resulting figures 'shrink' when either
copied to the clipboard or saved as a metafile using the GUI menu. Also saving
as postscript or pdf causes the same problem, as does printing the figure
directly from the graphics window. Only the figure areas shrink,
2011 Mar 08
2
plotCI() with ggplot2
Hello
Currently, I plot some coefficients with some intervals using
function "plotCI()" (package "gplots") using the following code:
(m1 <- matrix(0:5, nrow=2, byrow=T, dimnames=list(c("v1", "v2"),
c("lo", "m", "hi"))))
m2 <- m1 + 1
library(gplots)
plotCI(
x=1:length(m1[, 1]),
pch="",
1999 Oct 22
1
par(uin)
Hi,
I've been trying to use several plotting routings that make use of
S's par("uin"), the number of user units per inch. For the moment I've
substituted all of the occurences of this with
par.uin _ function()
(par("fin") / c( diff(par("xaxp")[1:2]),diff(par("yaxp")[1:2])))
This seems to work fine for my needs.
-Greg
2010 Jun 09
1
minor tick marks
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3 major ticks obtained with the above command. The "minor.tick" function