Displaying 20 results from an estimated 10000 matches similar to: "scientific notation problem"
2007 Sep 26
3
Scientific Notation
Dear List:
Below is how I specify an axis:
axis(2, at=c(0.00005, 0.0005))
R displays the numbers in scientific notation. What
argument/parameter should I use to tell R to display the numbers as
specified rather than in scientific notation?
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major
2011 Aug 25
2
rpart: plot without scientific notation
While I'm very pleased with the results I get with rpart and
rpart.plot, I would like to change the scientific notation of the
dependent variable in the plots into integers. Right now all my 5 or
more digit numbers are displayed using scientific notation.
I managed to find this:
http://tolstoy.newcastle.edu.au/R/e8/help/09/12/8423.html
but I do not fully understand what to change, and to
2003 Feb 06
1
signif {base}: changes to scientific notation
PROBLEM
`signif' does change to scientic notation
at different levels depending on the number
of significant digits in the input.
This can generate tables where figures change
``irregularly'' from normal to scientific notation.
PROPOSAL
The change to the scientific notation should
be made only if the figure in scientific notation
- with potentially as
2008 Apr 10
6
How to create a legend without plot, and to use scientific notation for axes label ?
Hi,
I have a 3 by 2 plots per page, and would like to place a legend on the last
region. How to do that ?
Also, is there any way to specify scientific notation for axes label ?
[[alternative HTML version deleted]]
2010 Aug 10
1
axis labels defaulting to scientific notation
The labels on the x-axis are defaulting to scientific notation no matter
how small cex.axis is. How can I override scientific notation to get the
labels to print out as specified? Here is the code (UNIT here is
0.0105):
plot(xm,yv,log="xy",ylim=c(0.1,20)/UNIT,xlim=c(0.004,20)*UNIT,xaxt="n",t
ype="n")
axis(1,
2010 Feb 02
2
Suppressing scientific notation on plot axis tick labels
Is there a better alternative to
x = c(1e7, 2e7)
x.lb = c(0,1e7,2e7)
s.lb = format(x.lb, scientific = FALSE, big.mark = ",")
barplot(x, yaxt = "n", ylab = "")
axis(side = 2, at = x.lb, labels = s.lb)
(I am sure there is a better alternative to line 2 :)).
Thank you.
--
View this message in context:
2007 Jun 08
2
overplots - fixing scientific vs normal notation in output
Moving from S-plus to R I encountered many great features and a much
more stable system.
Currently, I am left with 2 problems that are handled differently:
1) I did lots of "overplots" in S-Plus using
par(new=T,xaxs='d',yaxs='d') to fix the axes
->What is the workaround in R ?
2) In S-Plus I could fix "scientific notation" or "normal notation" in
2003 May 02
2
Suppressing Scientific Notation
R gurus,
Every so often(*) someone asks how to suppress scientific notation in
printing, so I thought I'd give it a shot, but I need some help.
The formatting decision is made(**) on line 286 of src/main/format.c :
if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */
where mF is the number of characters for "normal" printing and *m is the number
2002 Jul 03
2
Scientific notation
I'm writing a load of output to a file using cat(...), but I can't work out
how to turn off scientific notation for small numbers. When I originally
tried this a while a go I ended up building up a string variable, which is
rather clumsy...
Many thanks,
David
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2006 Oct 10
5
read.table() and scientific notation
Dear all,
I am having troubles importing values written as scientific notation
using read.table(). I'm sure this is a frequent problem, as many
people in my lab have this problem as well, so I'm sure that I just
have troubles googling for the right solution.
The problem is, that, given a file like that:
a 1 2e-4
b 2 3e-8
...
the third column gets imported as a factor, or a string if I
2009 Dec 15
1
Supressing Scientific Notation
I'm trying to display my deciles without scientific notation, but have not found an option that will allow me to do so. According to web searches, the options(scipen=999) should remove scientific notation, but it seems not too. Does this option work with quantcut function? Is there any other option that can be used? I am using verison 2.10.0.
library(gtools)
library(gdata)
2011 Oct 03
2
extracting p-values in scientific notation
Dear all
How does print.htest display the p-value in scientific notation?
> (x <- cor.test(iris[[1]], iris[[3]]))
Pearson's product-moment correlation
data: iris[[1]] and iris[[3]]
t = 21.65, df = 148, p-value < 2.2e-16
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.8270 0.9055
sample estimates:
cor
0.8718
Above the p-value comes
2019 Mar 21
3
prettyNum digits=0 not compatible with scientific notation
R developers,
Seems I get a bad result ("%#4.0-1e" in particular) when trying to use prettyNum digits=0 with scientific notation. I tried on both my Linux box and on an online R evaluator and saw the same problem, so it's not limited to my box at least. I see the problem in both R 3.5.3 and R 3.3.2.
options(scipen=-100)
prettyNum(1, digits=0)
[1] "%#4.0-1e"
prettyNum(2,
2010 Sep 27
1
scientific vs. fixed notation in xyplot()
Hi I am using xyplot() to plot on the log scale by using scale=list(log=T)
argument. For example:
xyplot(1:10~1:10, scales=list(log=T))
But the axis labels are printed as scientific notation (10^0.0, etc), instead of
fixed notation. How can I change that to fixed notation?
options(scipen=4) doesn't work on xyplot()
Thanks
John
2015 Jan 07
2
Failing lm-tests due to extra 0 in scientific notation?
Hello.
I've compiled R on Windows many times, and this is the first time I've
seen this error. While running make check-all (and using
testInstalledBasic("both")), the lm-tests routines fail, and, as far
as I can tell, the diff is failing because in one file, answers are
coming back like this "3.11e-004" while in the save file they are
"3.11e-04". Every value
2011 Mar 22
1
Rmark and scientific notation issue
Hi all,
Just wondering if anyone might know a way to stop R reading my survival
history that has zeros at the beginning in as scientific notation. The data
is being read in from a .txt file via read.table to be used with Rmark
I have the same issues at the moment with reading in .csv and .xls files.
The number was formatted as text in the .xls file otherwise excel puts it
into scientific notation
2001 Jan 17
1
Scientific notation?
Hi,
Would there be a function and/or some options to force R to write a value of
say 1.0e-4 as "0.0001"? More specifically I want to use R to write ASCII
file(s) for other programs to read and some of these programs don't know how
to deal numbers in scientific notation or have a different convention.
Thanks in advance.
Yves Gauvreau
B.E.F.P. Universit? du Qu?bec ? Montr?al
cyg at
2003 Jan 31
1
Scientific Notation on tick marks
Hi, I was working on a project for my class and I am trying to make sure the y-axis numbers NEVER convert automatically to scientific notation. Is there anything I can set in the plot function to make sure of this?
I know formatC( ) can be used in the axis function, but it seems to give me an error when using it in the plot function.
Thanks,
student-in-need-of-some-help
2006 Apr 28
1
displaying numbers not in scientific notation
Sorry for asking such a simple question, but I couldn't find the
answer through a search...
How can I get R to show me the values of estimates *not* in scientific notation?
When I use summary() after using lm() I am getting numbers like
4.485107e-01, when what I want to see is 0.4485....
Thanks,
Brian
2012 Mar 20
1
scientific notation in a data frame
Dear list,
I have a data frame where one of the columns are p values with scientific
notation mixed with regular numbers with decimals.
>a=data frame
>a
P OR N
0.50 0.7500 237
0.047 1.1030 237
0.124 0.7742 237
0.124 0.7742 237
0.0080 1.1590 237
0.50 0.7500 237
4.5e-07 1.2 237
5.6e-04 0.9 237
when I try to do
>pval=a$P/2
R gives me an error saying "In Ops.factor(pval, 2)