Displaying 20 results from an estimated 2000 matches similar to: "problem with the behaviour of dashed lines in R plots"
2017 Dec 04
1
problem with the behaviour of dashed lines in R plots
hi Sarah,
Thanks a lot for having taken time to answer me and for your reply. I
wonder how I missed this solution. Indeed plotting the line with the 2
extreme data points works perfectly.
Best,
Jean-Philippe Fontaine
On 04/12/2017 18:30, Sarah Goslee wrote:
> It's because you are plotting a line between each of the points in
> your data frame, and they are very close togethe
2017 Dec 04
0
problem with the behaviour of dashed lines in R plots
Hi,
It's because you are plotting a line between each of the points in
your data frame, and they are very close together:
> cbind(df1$B,predict(regressor,df1))
[,1] [,2]
1 1.410832 -13.96466
2 1.589383 -15.21169
3 1.446662 -14.21491
4 1.488665 -14.50826
5 1.487035 -14.49687
6 1.497347 -14.56890
7 1.458070 -14.29458
8 1.568134 -15.06328
9 1.543364 -14.89029
10 1.513473
2017 Oct 05
4
dealing with a messy dataset
dear R-users,
I am facing a quite regular and basic problem when it comes to dealing
with datasets, but I cannot find any satisfying answer so far.
I have a messy dataset of galaxies like that :
And XVIII 000214.5+450520 0.69 17 9 0.00 -8.7 26.8 6.44
6.78 < 6.65 -44 0.5 MESSIER031 0.6 1.54
PAndAS-03 000356.4+405319 0.10 17 0.00 -3.6 27.8
4.38
2017 Jun 15
1
draw stripes in a circle in R
hi david
Thank you very much for the hack of draw.circle that you proposed me.
I don't understand some part of the code, why do you pass radius as a
vector in the function (if I understand well the purpose of the for
loop) ? Also what is ymult?
If I set the radius to the value 0.85 as I wanted (so as a scalar), I
don't see any difference in the result when I call this function
2017 Jun 14
2
draw stripes in a circle in R
dear R users,
I would like to fill a circle with yellow stripes instead of a uniform
yellow color. To draw the circle I used the following command after
having loaded the (very nice !) plotrix library :
library(plotrix)
pdf("MWE.pdf",width=8, height=8)
2017 Oct 05
0
dealing with a messy dataset
Is this a fixed width format?
If so, read.fwf() in base, or read_fwf() in the readr package will solve the problem. You may need to trim trailing spaces though.
B.
> On Oct 5, 2017, at 10:12 AM, jean-philippe <jeanphilippe.fontaine at gssi.infn.it> wrote:
>
> dear R-users,
>
>
> I am facing a quite regular and basic problem when it comes to dealing with datasets,
2017 Oct 05
3
dealing with a messy dataset
dear Jim,
Thanks for your reply and your proposition.
I forgot to provide the header of the dataframe, here it is:
================================================================================
Byte-by-byte Description of file: lvg_table2.dat
--------------------------------------------------------------------------------
Bytes Format Units Label Explanations
2017 Oct 05
1
dealing with a messy dataset
dear Jim,
Yes I fixed the problem. Thanks again all of you for your contribution!
This worked :
start <- c(1, 20, 35, 41, 44, 48, 53, 59, 64, 70, 76, 78, 83, 88,
+ 93, 114, 122, 127)
data1<-read_fwf("lvg_table2.txt",skip=70, fwf_widths(diff(start)))
Well now I know how to deal with fixed-width files :)
Cheers
Jean-Philippe
On 05/10/2017 18:42, jim
2017 Oct 05
0
dealing with a messy dataset
You should be able to use that header information to create the
correct parameters to the read_fwf function to read in the data.
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
On Thu, Oct 5, 2017 at 11:02 AM, jean-philippe
<jeanphilippe.fontaine at gssi.infn.it> wrote:
> dear Jim,
>
> Thanks
2017 Jun 14
3
draw stripes in a circle in R
> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>
> I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one.
> --
> Sent from my phone. Please excuse my brevity.
>
> On June 14, 2017 7:57:41 AM PDT, jean-philippe <jeanphilippe.fontaine at
2017 Jun 14
0
draw stripes in a circle in R
> On Jun 14, 2017, at 10:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>
>> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>
>> I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one.
>> --
>> Sent from my
2017 Oct 05
0
dealing with a messy dataset
It looks like fixed width. I just used the last position of each
field to get the size and used the 'readr' package;
> input <- "And XVIII 000214.5+450520 0.69 17 9 0.00
-8.7 26.8 6.44 6.78 < 6.65 -44 0.5 MESSIER031 0.6
1.54
+ PAndAS-03 000356.4+405319 0.10 17 0.00 -3.6 27.8
4.38 2.8 MESSIER031
2017 Nov 09
2
R basic
Can anyone help with scripting the commands below?
1. Add/create a new column to df and name it as ShortPause .
2. Convert ShortPause as a factor variable.
3. ShortPause will have two levels (short and long). Assign short if pause
is smaller than 0.1, and assign
long otherwise.
4. How many ?syntax==intransitive? observations were realized with a tap
(tapped==Tapped)? (Use xtabs()
and ftable() to
2017 Jun 14
0
draw stripes in a circle in R
I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is not your question, ask one.
--
Sent from my phone. Please excuse my brevity.
On June 14, 2017 7:57:41 AM PDT, jean-philippe <jeanphilippe.fontaine at gssi.infn.it> wrote:
>dear R users,
>
>I would like to fill a circle with yellow stripes instead of a uniform
2017 Jun 14
1
[FORGED] Re: draw stripes in a circle in R
Envoy? depuis mon appareil Samsung
-------- Message d'origine --------
De : Rolf Turner <r.turner at auckland.ac.nz>
Date : 14/06/2017 22:53 (GMT+01:00)
? : David Winsemius <dwinsemius at comcast.net>
Cc : r-help at r-project.org
Objet : Re: [R] [FORGED] Re: draw stripes in a circle in R
On 15/06/17 05:29, David Winsemius wrote:
>
>> On Jun 14, 2017, at
2017 Jun 14
4
[FORGED] Re: draw stripes in a circle in R
On 15/06/17 05:29, David Winsemius wrote:
>
>> On Jun 14, 2017, at 10:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>>
>>
>>> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>>
>>> I don't see a question. If your question is whether R supports pattern fills, AFAIK it does not. If that is
2017 Jun 14
0
[FORGED] Re: draw stripes in a circle in R
> On Jun 14, 2017, at 1:53 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
> On 15/06/17 05:29, David Winsemius wrote:
>>> On Jun 14, 2017, at 10:18 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>>>
>>>
>>>> On Jun 14, 2017, at 9:46 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>>>
2017 Jun 15
2
[FORGED] Re: draw stripes in a circle in R
Sigh. I never load packages in .Rprofile to avoid the irreproducibility trap. Might seem drastic to some, but I don't feel much pain because I almost always edit my code in a file rather than on the fly at the console, and re-run it frequently from a fresh R process to check my progress.
--
Sent from my phone. Please excuse my brevity.
On June 14, 2017 3:27:15 PM PDT, David Winsemius
2017 Jun 14
0
draw stripes in a circle in R
Sorry for that. Yes my question was whether or not and how is it possible to fill a circle of yellow stripes in R? Is it something that I have to precise in the color argument?
Thanks, best
Envoy? depuis mon appareil Samsung
-------- Message d'origine --------
De : Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
Date : 14/06/2017 18:46 (GMT+01:00)
? : r-help at r-project.org,
2007 Jul 17
3
logical operators priority
Dear R-users,
I haven?t found rules for logical operators. I need to select data according
the following rule:
Condition A & (Condition B | Condition C) How should I write it?? Is
Condition A & Condition B | Condition C correct or will R execute (Condition
A & Condition B) | Condition C ?
Thanks for your help.
Delphine Fontaine
Delphine Fontaine
Statistician
Statistics