Description Usage Arguments Value Author(s) Examples
fast way to make a point plot
1 2 3 4 5 6 7 8 9 10 11  | Fastpoint1(data,
           select,
           color="#FB8072",
           select.color=1:2,
           legend.position = "right",
           half.border = T,
           alpha = 0.5,
           width = 10,
           height = 10,
           save.file = T,
           names = "love")
 | 
data | 
 a data frame  | 
select | 
 selected marker colnames  | 
color | 
 a color vector or a colname of data frame  | 
select.color | 
 if color is a colname of data frame,points are colored by groups.Thus,select.color set which colors should be used.  | 
legend.position  | 
 "right".legend position  | 
half.border  | 
 T.if show half of black border of the plot  | 
width  | 
 10.new showing window width  | 
height  | 
 10.new showing window height  | 
save.file  | 
 T.whether save PDF file  | 
names  | 
 "love".part of PDF file name  | 
a point plot
Weibin Huang<654751191@qq.com>
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  | ## example
data=mtcars
select = c("disp","hp")
data$gear <- factor(data$gear,levels = c(3,4,5))
#all border
p <- Fastpoint1(data,
                select,
                color = "gear",
                select.color=1:3,
                legend.position = "right",
                half.border = F)
#half border
p <- Fastpoint1(data,
                select,
                color = "gear",
                select.color=1:3,
                legend.position = "right",
                half.border = T)
#top legend
p <-Fastpoint1(data,
               select,
               color = "gear",
               select.color=1:3,
               legend.position = "top",
               half.border = T)
#new window
p <- Fastpoint1(data,
                select,
                color = "gear",
                select.color=1:3,
                legend.position = "right",
                half.border = F,
                width = 12,
                height = 12)
#new color.Here legend.position would not work.
p <- Fastpoint1(data,
                select,
                color = "#8DD3C7",
                legend.position = "right",
                half.border = F,
                width = 12,
                height = 12)
Fastpoint1(data = data.i1,
                  select = colnames(data.i1),
                  color = mycolor[13],
                  legend.position = "right",
                  half.border = T,
                  save.file = F) +
       stat_smooth(method = "auto",se=T,
                   color=mycolor[4],
                   fill = mycolor[5],
                   formula = y ~ x)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.