如果比较轻松,则将Laravel 5.2加在一起

时间:2018-07-11 15:56:57

标签: php laravel

我想添加相同和相似的值

像这样:

library(ggplot2)

C1 <- rnorm(100)
C2 <- rnorm(500)

dat <- cbind(C1,C2)

# Violin plots for columns
mat <- reshape2::melt(data.frame(dat), id.vars = NULL)
pp <- ggplot(mat, aes(x = variable, y = value)) + geom_violin(scale="width",adjust = 1,width = 0.5,fill = "gray80")
pp

在这里我要添加所有“ AAA”值,并只显示其中一个

这是我的观点:

AAA     122
AAA     111
AAA     225
AAA     222
AAA     115
AAA     12
AAA     2
AAA     123
AAA     222
BBB     12

和我的控制器:

@foreach($WhoSales as $WhoSales)
    <tr>
        <td>{{ $WhoSales->user->name }}</td>
        <td>{{ $WhoSales->quantity }}</td>
    </tr>
@endforeach

0 个答案:

没有答案