facet

List of JSF / Tobago Facets?

纵然是瞬间 提交于 2019-12-04 12:37:18
Does anybody know a good link with a list of all existign JSF/Tobago facets containing explanation what the facet is good for? Until now I know about the "layout" and "confirmation" facet but I haven't found a website showing up all the other existing facets... Thanks in advance! Usually the documentation for the individual tags has a description for their facets. For example, http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/dataTable.html describes some of the facts it accepts, like header and footer. If you do find a comprehensive list of all facets for every tag though, let me

ElasticSearch - Statistical facet on length of string field

て烟熏妆下的殇ゞ 提交于 2019-12-04 12:07:27
I would like to retrieve data about a string field like the min, max and average length (by counting the number of characters inside the string). My issue is that aggregations can only be used for numeric fields. Besides, I tried it using a simple statistical facet, "query":{ "match_all": {} }, "facets":{ "stat1":{ "statistical":{ "field":"title"} } } but I get shard failures and SearchPhaseExecutionException. When trying with a script field the error returned is an OutOfMemoryError: "query":{ "match_all": {} }, "script_fields":{ "test1":{"script": "doc[\"title\"].value" } } Is it possible to

How to change one specific facet in ggplot

我们两清 提交于 2019-12-04 11:32:44
I created pie charts displaying different scores (0 - 100%) in ggplot with the help of facet_grid(). However the last score is a total score combining the other scores and in order to distinguish it better from the other scores I would like to change the parameters for this specific facet. Ideally, I would like to make the facet-label bold and move the facet a bit further away from the other facets, but I have no idea how to change the parameters of only one specific facet. library(ggplot2) df <- data.frame(label = c("A", "B", "Total"), score = c(60, 70, 65)) ggplot(df, aes(x = "", y = score))

faceted piechart with ggplot

天大地大妈咪最大 提交于 2019-12-04 11:23:12
I have the following data.frame: x = data.frame(category=c(1,1,1,1,2,2,2,2), value=c(1,2,1,1,2,2,2,1)); x$category = as.factor(x$category); x$value = as.factor(x$value); and I have created a faceted bar chart with ggplot2. ggplot(x, aes(value, fill=category)) + geom_bar() + facet_wrap(~category); However, I would like to have a pie chart that shows the fraction values (based on the totals for each category). The diagram should then show one pie chart for each category and two fractions inside each pie chart, one for each value factor. The real data has up to 6 categories and I have a few 1000

How to annotate different values for each facet (bar plot) on R?

ε祈祈猫儿з 提交于 2019-12-04 05:27:24
问题 I'd like to know how to annotate each facet in my bar plot. Right now, I'm using the geom_signif function which works perfectly except that it duplicates the annotation on one facet onto the other facet. My code is as such: geom_signif(annotation = c("p=0.01"), y_position = c(9), xmin = c(2), xmax = c(3)) My bar plot: Please advise. I've read through some similar solutions here, tried some other ways but I still can't seem to figure it out.. This is the closest and easiest solution to what I

Get same height for plots having different facet numbers, and coord_fixed?

 ̄綄美尐妖づ 提交于 2019-12-04 05:15:05
Let me explain in pictures what I mean: set.seed(1) ## dummy data.frame: df <- data.frame( value1 = sample(5:15, 20, replace = T), value2 = sample(5:15, 20, replace = T), var1 = c(rep('type1',10), rep('type2',10)), var2 = c('a','b','c','d')) ## Plot 1 ggplot() + geom_point(data = df, aes(value1, value2)) + facet_grid(~var1) + coord_fixed() ggsave("plot_2facet.pdf", height=5, units = 'in') #Saving 10.3 x 5 in image ## Plot 2 which I want to save in a separate file (!) ggplot() + geom_point(data = df, aes(value1, value2)) + facet_grid(~var2) + coord_fixed() ggsave("plot_4facet.pdf", height=5,

ggplot - facet by function output

試著忘記壹切 提交于 2019-12-04 03:09:52
问题 I'm unsure how to facet by a function of the data in the data element of a ggplot object. In the following toy example, what I want to do is something like this: df <- data.frame(x=1:8, y=runif(8), z=8:1) ggplot(df, aes(x=x, y=y)) + geom_point() + facet_wrap( ~ (z %% 2)) But that gives the error: Error in layout_base(data, vars, drop = drop) : At least one layer must contain all variables used for facetting . I can achieve the desired result by transforming the data frame: ggplot(transform(df

Indexing Fields with SOLR and LowerCaseFilterFactory

和自甴很熟 提交于 2019-12-04 02:44:18
I have a Field defined as <fieldType name="text_ws_lc" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0

Force X axis on both graphs in a facet grid when X values are the same

ⅰ亾dé卋堺 提交于 2019-12-04 00:18:40
问题 I have data with about 30 categories for the X axis in two groups for faceting. I will show this with some random data: dataf <- data.frame(x=c(1:30), A=rnorm(30,20,5), B=rnorm(30,15,0.5)) datam <- melt(dataf, id="x") ggplot(datam, aes(factor(x), value)) + geom_bar(stat="identity") + facet_grid(variable ~ .) This is just lovely, except that it would be easier to quickly read off categories on the top grouping if the x axis was reproduced on that graph too. However ggplot(datam, aes(factor(x),

How to create a faceted line-graph using ggplot?

淺唱寂寞╮ 提交于 2019-12-03 22:19:30
I have a data frame created with this code: require(reshape2) foo <- data.frame( abs( cbind(rnorm(3),rnorm(3, mean=.8),rnorm(3, mean=.9),rnorm(3, mean=1)))) qux <- data.frame( abs( cbind(rnorm(3),rnorm(3, mean=.3),rnorm(3, mean=.4),rnorm(1, mean=2)))) bar <- data.frame( abs( cbind(rnorm(3,mean=.4),rnorm(3, mean=.3),rnorm(3, mean=.9),rnorm(3, mean=1)))) colnames(foo) <- c("w","x","y","z") colnames(qux) <- c("w","x","y","z") colnames(bar) <- c("w","x","y","z") rownames(foo) <- c("n","q","r") rownames(qux) <- c("n","q","r") rownames(bar) <- c("n","q","r") foo <- cbind(ID=rownames(foo),foo) bar <-