R ggplot geom_bar()标签栏(带'count')

时间:2016-11-16 09:43:22

标签: r ggplot2 statistics

我有一个像这样的ggplot:

class SiteServiceApplicationLoader extends SimpleApplicationLoader {
  type MyComponents = SiteApplicationComponents
  def newMyComponents(context: Context): MyComponents = 
    new SiteApplicationComponents(context)
}

如果没有定义y轴,如何用y轴的结果标记条形? (不改变df)

enter image description here

1 个答案:

答案 0 :(得分:4)

<?php
$options = array(
    'East', 'West', 'North', 'South',
);
?>
<select name="District">
    <?php foreach($options as $option) { ?>
        <option value="<?php echo $option; ?>" <?php echo (isset($_SESSION['District']) && $_SESSION['District'] == $option) ? "selected" : "" ?>><?php echo $option; ?></option>
    <?php } ?>
</select>