Yuan Chun Ding
2021-Sep-16 22:40 UTC
[R] boxplots and dotplots by color group 1 and shape group2
Dear R users,
I generated a boxplots in combination of dotplots using the R code below for the
attached test file.
boxplot(value~score, data = test, outpch = NA,
xlab="",ylab="",xaxt='n',
cex.lab=1.2, cex.axis=1.2, main="Correlation of SCNV score and SCNV
value ")
mtext(side=2, "SCNV value", line=2.3, cex = 1.3 )
stripchart(value~score, data = test,
vertical = TRUE, method = "jitter",
pch = 16, col = c("green",
"brown4","black", "red"),
add = TRUE)
now I hope to add a second group variable purity_cat in the test file, labeling
it by four different shape, pch=c(3,4,16,8).
Is it possible to do add the second group variable?
Thank you,
Ding
----------------------------------------------------------------------
------------------------------------------------------------
-SECURITY/CONFIDENTIALITY WARNING-
This message and any attachments are intended solely for the individual or
entity to which they are addressed. This communication may contain information
that is privileged, confidential, or exempt from disclosure under applicable law
(e.g., personal health information, research data, financial information).
Because this e-mail has been sent without encryption, individuals other than the
intended recipient may be able to view the information, forward it to others or
tamper with the information without the knowledge or consent of the sender. If
you are not the intended recipient, or the employee or person responsible for
delivering the message to the intended recipient, any dissemination,
distribution or copying of the communication is strictly prohibited. If you
received the communication in error, please notify the sender immediately by
replying to this message and deleting the message and any accompanying files
from your system. If, due to the security risks, you do not wish to receive
further communications via e-mail, please reply to this message and inform the
sender that you do not wish to receive further e-mail from the sender. (LCP301)
------------------------------------------------------------