-
Notifications
You must be signed in to change notification settings - Fork 1
/
Plots_cristalografia (1).R
67 lines (60 loc) · 1.28 KB
/
Plots_cristalografia (1).R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
library(ggplot2)
tabelinhaCristal <- read.csv("~/Documents/tabelinhaCristal.csv")
mydata<-tabelinhaCristal
####P da comparacao
#Por tamanho
ggplot(mydata,
aes_string(
x = 'Grade',
y = "Gene",
size = 'P.value'
)
) +
geom_point(colour="red") +
ylab(NULL) + theme(axis.text.y = element_text(
size = 12,
angle = 0,
hjust = 1,
vjust = 0,
face = "plain"
))+ scale_size(range = c(3, 8))
#Por cor
ggplot(mydata,
aes_string(
x = 'Grade',
y = "Gene",
color = 'P.value'
)
) +
geom_point(size=5) +
scale_color_continuous(
low = "red",
high = "blue",
name = 'P-value',
guide = guide_colorbar(reverse = TRUE)
) +
ylab(NULL) + theme(axis.text.y = element_text(
size = 12,
angle = 0,
hjust = 1,
vjust = 0,
face = "plain"
))
#########P do tecido#############
ggplot(mydata,
aes_string(
x = 'Grade',
y = "Gene",
size = 'P.value.1',
colour="Histology"
)
) +
geom_point() +
scale_colour_hue(l = 70, c = 150)+
ylab(NULL) + theme(axis.text.y = element_text(
size = 12,
angle = 0,
hjust = 1,
vjust = 0,
face = "plain"
))+ scale_size(name="P-value",range = c(3, 8))