On my keyboard the key is share with the tilde symbol and is up on the left
hand corner.
Sent from my iPhone
> On Jun 23, 2021, at 2:45 PM, David Winsemius wrote:
>
> Backticks. NOT apostrophes.
>
> — David
>
> Sent from my iPhone
>
>> On Jun 23, 2021, at 2:40 PM, Mahmood Naderan
OK I understand. Thanks a lot.
Regards,
Mahmood
On Wed, Jun 23, 2021 at 11:46 PM Bert Gunter wrote:
> Try:
> ggplot(mydata, aes(x=W, y=`X/Y`)) + geom_violin(trim=FALSE)
>
> Note the use of *backticks*, ``, not single quotes, ' ' . ** They are
> different.**
>
> So, yes, your data got read
Try:
ggplot(mydata, aes(x=W, y=`X/Y`)) + geom_violin(trim=FALSE)
Note the use of *backticks*, ``, not single quotes, ' ' . ** They are
different.**
So, yes, your data got read in correctly, presumably because "/" is
considered a character in your locale. It is not in mine. So my suggestion
was
Backticks. NOT apostrophes.
— David
Sent from my iPhone
> On Jun 23, 2021, at 2:40 PM, Mahmood Naderan wrote:
>
> Hi Bert,
> I don't know what does "check.names" do here, but my commands look like
>
>
>> mydata <- read.csv('r.3080..csv', header=T,row.names=1)
>
>> head(mydata)
>
Hi Bert,
I don't know what does "check.names" do here, but my commands look like
> mydata <- read.csv('r.3080..csv', header=T,row.names=1)
> head(mydata)
W AX/Y
P1 M 1.469734 0.004144405
P2M 20.584841 0.008010306
P3 M 53.519800
I found your specification quite vague. What did you mean by a "data file"
-- a data frame in R? -- a file in the file system?
I may be completely wrong here, but another possibility is that you read
your data into an R data.frame via, e.g. read.table() or read.csv(), but
failed to specify the
Unfortunately, using 'X/Y' doesn't work either.
Instead I used labels like below
P + scale_y_continuous(name="X/Y")
Thanks for the suggestions.
Regards,
Mahmood
On Wed, Jun 23, 2021 at 9:22 PM Eric Berger wrote:
> If no one comes up with a better suggestion:
> a. Change the column name to
If no one comes up with a better suggestion:
a. Change the column name to "Y" so that you get the plot you want
b. Use axis labels and legend text to show the text that you want. (The
user never has to know that you changed the column name )
HTH,
Eric
On Wed, Jun 23, 2021 at 9:58 PM Mahmood
On 23/06/2021 11:38 a.m., Mahmood Naderan wrote:
Hi
I have a column in my data file which is "X/Y". With '/' I want to
emphasize that values are the ratio of X over Y.
Problem is that in the following command for a violin plot, I am not able
to specify that '/' even with double quotes.
p <-
Use backquotes, `X/Y`, to specify a name, not double quotes.
-Bill
On Wed, Jun 23, 2021 at 11:58 AM Mahmood Naderan
wrote:
> Hi
> I have a column in my data file which is "X/Y". With '/' I want to
> emphasize that values are the ratio of X over Y.
> Problem is that in the following command for
Hi
I have a column in my data file which is "X/Y". With '/' I want to
emphasize that values are the ratio of X over Y.
Problem is that in the following command for a violin plot, I am not able
to specify that '/' even with double quotes.
p <- ggplot(mydata, aes(x=W, y="X/Y")) +
11 matches
Mail list logo